内容へ移動
nabezo wiki
ユーザ用ツール
ログイン
サイト用ツール
検索
ツール
文書の表示
以前のリビジョン
バックリンク
最近の変更
メディアマネージャー
サイトマップ
ログイン
>
最近の変更
メディアマネージャー
サイトマップ
トレース:
lapp構築
この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。
**centos対象** =====Linux+Apache+Postgresql+Php===== # yum install postgresql-server # yum install postgresql # yum install httpd # yum install php # yum install php-pgsql =====postgresql===== # su - postgres $ #rm -r data $ initdb --encoding=UTF8 --no-locale -D /var/lib/pgsql/data $ pg_ctl start $ createuser --pwprompt --superuser --createdb --no-createrole xxusrxx $ psql -c 'create database xxdbxx with owner = xxusrxx;' postgres $ psql -c 'create schema xxschxx authorization xxusrxx;' -d xxdbxx -U xxusrxx # chkconfig --add postgresql # chkconfig postgresql on =====apach(httpd)===== # /etc/init.d/httpd start # chkconfig --add httpd # chkconfig httpd on =====iptables===== vim /etc/sysconfig/iptables # Firewall configuration written by system-config-firewall # Manual customization of this file is not recommended. *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT -A INPUT -p icmp -j ACCEPT -A INPUT -i lo -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT -A INPUT -j REJECT --reject-with icmp-host-prohibited -A FORWARD -j REJECT --reject-with icmp-host-prohibited COMMIT 変更後 # /etc/init.d/iptables stopt # /etc/init.d/iptables start =====php===== /etc/httpd/conf.d/php.conf の内容を確認(なにもしなくても動くはず) =====その他===== /etc/sysconfig/i18n * 日本語 LANG="ja_JP.UTF-8"
lapp構築.txt
· 最終更新: 2019/06/30 12:22 by
127.0.0.1
ページ用ツール
文書の表示
以前のリビジョン
バックリンク
文書の先頭へ