安裝postgresql資料庫
- 安裝資料庫postgresql84
yum install postgresql84 postgresql84-server postgresql84-libs
- 第一次執行需要初始化資料庫
service postgresql initdb
- 啟動資料庫
service postgresql start
- postgresql設定開機時啟動
chkconfig postgresql on
- 修改/var/lib/pgsql/data/pg_hba.conf
host all all 127.0.0.1/32 md5
host all all 192.168.1.0/24 md5
- 修改/var/lib/pgsql/data/postgresql.conf
listen_addresses = '*'
- 重新載入設定
su -l postgres
pg_ctl reload
0 意見:
張貼留言