【问题标题】:Postgresql user issuePostgresql 用户问题
【发布时间】:2015-07-23 03:24:02
【问题描述】:

在整个崩溃过程中,我已经多次通过 brew 卸载并重新安装了 postgresql。

我正在尝试过渡到使用 postgresql.app... 但是每当我尝试启动程序时,我都会收到一条错误消息,并告诉我检查日志。

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.
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.
WARNING:  could not create listen socket for "localhost"
FATAL:  could not create any TCP/IP sockets
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.
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.
WARNING:  could not create listen socket for "localhost"
FATAL:  could not create any TCP/IP sockets
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.
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.
WARNING:  could not create listen socket for "localhost"
FATAL:  could not create any TCP/IP sockets

此时我不知道该怎么办...我正在尝试删除与 postgresql 相似的任何内容。任何建议将不胜感激。

【问题讨论】:

  • 这是一个linux盒子?尝试执行 ps -eaf | grep postgres 查看进程是否正在运行。也试试 ss -an | grep 5432 查看 5432 处运行的内容。

标签: postgresql homebrew


【解决方案1】:

您可以尝试查找当前正在监听localhost:5432的进程

sudo netstat -tpln | grep 5432

您将获得 PID。根据它是什么,您可能需要杀死它并重新启动 Postgres 或识别在 5432 上运行的程序以停止它自动运行或将其删除。

【讨论】:

  • 所以我确实运行了两个实例(一个在 postgres.app 中,另一个在正常运行)。我认为 postgres.app 需要本地文件...非常感谢!
猜你喜欢
  • 2018-03-09
  • 1970-01-01
  • 2014-06-05
  • 2011-09-29
  • 1970-01-01
  • 1970-01-01
  • 2011-09-13
  • 2010-09-28
  • 1970-01-01
相关资源
最近更新 更多