【发布时间】:2013-10-02 21:19:35
【问题描述】:
我无法在 Mac OS X 上重新启动 postgres 服务器。 我该如何解决这个问题?
尝试了两种方法:
pg_ctl 重启返回:
pg_ctl: PID file "usr/local/var/postgres:/postmaster.pid" does not exist
Is server running?
starting server anyway
pg_ctl: could not read file "usr/local/var/postgres:/postmaster.opts"
服务器没有重启
pg_ctl -D /usr/local/var/postgres 重启结果:
pg_ctl: PID file "/usr/local/var/postgres/postmaster.pid" does not exist
Is server running?
starting server anyway
server starting
LOG: could not bind IPv4 socket: Address already in use
HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
LOG: could not bind IPv6 socket: Address already in use
HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
WARNING: could not create listen socket for "*"
FATAL: could not create any TCP/IP sockets
【问题讨论】:
-
OMG .. 还有一个... stackoverflow.com/a/8482546/905902
-
用
ps aux | grep postgres检查正在运行的进程,杀死它们然后尝试启动你的服务器
标签: macos postgresql