[root@localhost ~]# /etc/init.d/postgresql start
/var/lib/pgsql/data is missing. Use "service postgresql initdb" to initialize the cluster first.
[FAILED]
[root@localhost ~]# service postgresql initdb
Initializing database: [ OK ]
設定參數檔
[root@localhost data]# vi /var/lib/pgsql/data/postgresql.conf
設定登入權限檔
[root@localhost data]# vi /var/lib/pgsql/data/pg_hba.conf
設定完再啟動
[root@localhost ~]# /etc/init.d/postgresql start
p.s.設定開機啟動
[root@localhost data]# vi /var/lib/pgsql/data/postgresql.conf
設定登入權限檔
[root@localhost data]# vi /var/lib/pgsql/data/pg_hba.conf
設定完再啟動
[root@localhost ~]# /etc/init.d/postgresql start
Starting postgresql service: [ OK ]
p.s.設定開機啟動
chkconfig postgresql on
沒有留言:
張貼留言