我上传了一个关于此的问题,但尚未解决,所以我重新发布了它。
我在Postgresql
上安装Ubuntu 14.04
时遇到问题。
我做的是:
sudo su -
sudo apt-get install postgresql postgresql-contrib
update-rc.d postgresql enable
service postgresql start
做#3,我得到了:
update-rc.d: warning: start runlevel arguments (none) do not match postgresql Default-Start values (2 3 4 5)
update-rc.d: warning: stop runlevel arguments (none) do not match postgresql Default-Stop values (0 1 6)
Enabling system startup links for /etc/init.d/postgresql ...
Removing any system startup links for /etc/init.d/postgresql ...
/etc/rc0.d/K21postgresql
/etc/rc1.d/K21postgresql
/etc/rc2.d/S19postgresql
/etc/rc3.d/S19postgresql
/etc/rc4.d/S19postgresql
/etc/rc5.d/S19postgresql
/etc/rc6.d/K21postgresql
Adding system startup for /etc/init.d/postgresql ...
/etc/rc0.d/K21postgresql -> ../init.d/postgresql
/etc/rc1.d/K21postgresql -> ../init.d/postgresql
/etc/rc6.d/K21postgresql -> ../init.d/postgresql
/etc/rc2.d/S19postgresql -> ../init.d/postgresql
/etc/rc3.d/S19postgresql -> ../init.d/postgresql
/etc/rc4.d/S19postgresql -> ../init.d/postgresql
/etc/rc5.d/S19postgresql -> ../init.d/postgresql
在做#4时,我收到了这个错误:
The PostgreSQL server failed to start. Please check the log output:
2015-07-17 21:54:24 PHT LOG: could not open secondary authentication file "@admins" as "/etc/postgresql/9.3/main/admins": No such file or directory
2015-07-17 21:54:24 PHT LOG: could not open secondary authentication file "@admins" as "/etc/postgresql/9.3/main/admins": No such file or directory
2015-07-17 21:54:24 PHT LOG: could not open secondary authentication file "@demodbs" as "/etc/postgresql/9.3/main/demodbs": No such file or directory
2015-07-17 21:54:24 PHT LOG: end-of-line before authentication method
2015-07-17 21:54:24 PHT CONTEXT: line 75 of configuration file "/etc/postgresql/9.3/main/pg_hba.conf"
2015-07-17 21:54:24 PHT FATAL: could not load pg_hba.conf
我以为我正确安装了Postgresql
。有什么问题?
答案 0 :(得分:0)
我已经通过在评论中遵循joop的建议解决了这个问题。
我已使用pg_hba.conf
打开sudo
(没有sudo,似乎为空)然后我注释掉了@admins
的所有行。