/etc/sysconfig/selinux ファイルを編集
#SELINUX=enforcing SELINUX=disabled
# yum -y install php-mysql # yum -y install php-pgsql # yum -y install php-pdo # yum -y install php-mbstring # yum -y install php-gd
# chkconfig httpd on # chkconfig mysqld on # chkconfig postgresql on
# service postgresql initdb
# "local" is for Unix domain socket connections only #local all all ident local all all trust # IPv4 local connections: #host all all 127.0.0.1/32 ident host all all 127.0.0.1/32 trust # IPv6 local connections: #host all all ::1/128 ident host all all ::1/128 trust
# shutdown -r now
# psql -V psql (PostgreSQL) 9.0.4 コマンドライン編集機能のサポートが組み込まれています。 # su - postgres -bash-4.2$ psql postgres=# \l データベース一覧 名前 | 所有者 | エンコーディング | 照合順序 | Ctype(変換演算子) | アクセス権 -----------+----------+------------------+-------------+-------------------+----------------------- postgres | postgres | UTF8 | ja_JP.UTF-8 | ja_JP.UTF-8 | template0 | postgres | UTF8 | ja_JP.UTF-8 | ja_JP.UTF-8 | =c/postgres + | | | | | postgres=CTc/postgres template1 | postgres | UTF8 | ja_JP.UTF-8 | ja_JP.UTF-8 | =c/postgres + | | | | | postgres=CTc/postgres (3 行)