我正在尝试在Ubuntu 14.04上安装Postgres 9.3,并且在启动时遇到一个令人讨厌的错误。这是我所看到的:
$ sudo service postgresql restart
* Restarting PostgreSQL 9.3 database server
* Error: could not exec /usr/lib/postgresql/9.3/bin/pg_ctl /usr/lib/postgresql/9.3/bin/pg_ctl start -D /var/lib/postgresql/9.3/main -l /var/log/postgresql/postgresql-9.3-main.log -s -o -c config_file="/etc/postgresql/9.3/main/postgresql.conf" : [fail]
因此,我使用以下输出检查了日志文件:
2015-01-05 21:50:05 EST LOG: database system was shut down at 2015-01-05 21:50:03 EST
2015-01-05 21:50:05 EST LOG: database system is ready to accept connections
2015-01-05 21:50:05 EST LOG: autovacuum launcher started
2015-01-05 21:50:06 EST LOG: incomplete startup packet
2015-01-05 21:51:22 EST ERROR: syntax error at or near "exit" at character 1
2015-01-05 21:51:22 EST STATEMENT: exit;
可能是“启动包不完整”的罪魁祸首,但是我很难找到可能发生的情况的信息,所以我想问一下。提前致谢。