我按照給定的說明安裝PostgreSQL的:http://xadmin.info/?p=284問題而連接PSQL
# pg_ctl -D /var/lib/pgsql/data -l pglog.log start
server starting
[email protected]:~> psql
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on
Unix domain socket "/tmp/.s.PGSQL.5432"?
我沒有得到,爲什麼我會收到這個錯誤時,服務器已啓動...有人可以請幫幫我。
我pglog.log文件顯示以下的輸出:
2013-02-06 19:43:39 GMT FATAL: lock file "postmaster.pid" already exists
2013-02-06 19:43:39 GMT HINT: Is another postmaster (PID 23971) running in data directory "/var/lib/pgsql/data"?
2013-02-06 19:44:02 GMT FATAL: lock file "postmaster.pid" already exists
2013-02-06 19:44:02 GMT HINT: Is another postmaster (PID 23971) running in data directory "/var/lib/pgsql/data"?
2013-04-24 12:43:29 GMT FATAL: data directory "/var/lib/pgsql/data" has group or world access
2013-04-24 12:43:29 GMT DETAIL: Permissions should be u=rwx (0700).
2013-04-24 12:44:07 GMT FATAL: data directory "/var/lib/pgsql/data" has group or world access
2013-04-24 12:44:07 GMT DETAIL: Permissions should be u=rwx (0700).
2013-04-24 12:57:02 GMT FATAL: data directory "/var/lib/pgsql/data" has group or world access
2013-04-24 12:57:02 GMT DETAIL: Permissions should be u=rwx (0700).
2013-04-24 12:57:40 GMT FATAL: data directory "/var/lib/pgsql/data" has group or world access
2013-04-24 12:57:40 GMT DETAIL: Permissions should be u=rwx (0700).
PS -ef | grep的Postgres的
root 21659 21591 0 19:14 pts/0 00:00:00 grep --color=auto postgres
我已經發布我pglog.log文件的內容。希望這將有助於你進一步幫助我 – user1778824 2013-04-24 13:10:23
它列出了許多有關權限的致命錯誤,所以我會首先檢查並確保單獨的Postgres進程尚未運行,這些日誌也記錄在案。 – 2013-04-24 13:11:38
如何檢查停止單獨的postgres進程 – user1778824 2013-04-24 13:15:04