【发布时间】:2012-07-26 01:21:30
【问题描述】:
更新到山狮后,我的 postgres 无法正常工作。它仍在运行,但我的应用程序无法再连接到它。
$ ps aux | grep postgres
postgres 204 0.0 0.0 2446960 836 ?? Ss 7:31AM 0:00.59 postgres: stats collector process
postgres 203 0.0 0.1 2478732 2240 ?? Ss 7:31AM 0:00.41 postgres: autovacuum launcher process
postgres 202 0.0 0.0 2478600 584 ?? Ss 7:31AM 0:00.34 postgres: wal writer process
postgres 201 0.0 0.0 2478600 784 ?? Ss 7:31AM 0:00.48 postgres: writer process
postgres 95 0.0 0.0 2446960 368 ?? Ss 7:31AM 0:00.11 postgres: logger process
postgres 64 0.0 0.2 2478600 7972 ?? Ss 7:31AM 0:00.26 /Library/PostgreSQL/9.1/bin/postmaster -D/Library/PostgreSQL/9.1/data
anezio 10205 0.0 0.0 2432768 624 s000 R+ 8:01AM 0:00.00 grep postgres
我的应用程序返回此错误:
could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?
我仍然可以使用 /Library/PostgreSQL/9.1/bin/psql -U postgres 命令连接到 psql
好像有些东西没有指向正确的地方
【问题讨论】:
-
听起来你在使用 psql 的那台机器上有一些其他的 postgres 版本。也许您也可以告诉我们您的安装历史?
-
我已经使用 postgresql.com 的一键安装程序安装了它。在我更新做山狮之前它工作正常
-
我已经解决了这个问题,卸载并重新安装 Postgresql。谢谢
-
这为我解决了这个问题:jaygoldman.com/2012/11/…(总结:从套接字文件的实际位置创建一个符号链接到 pg 正在查找的位置)
标签: postgresql postgresql-9.1 osx-mountain-lion