我在 CentOS 系统上启动 PostgreSQL 时遇到问题。下面是我的错误日志。任何帮助将不胜感激。
2017-04-25 03:18:12.553 CDT > LOG: could not bind IPv6 socket: Address already in use
2017-04-25 03:18:12.553 CDT > HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
2017-04-25 03:18:12.553 CDT > WARNING: could not create listen socket for "*"
2017-04-25 03:18:12.553 CDT > FATAL: could not create any TCP/IP sockets
2017-04-25 03:18:12.554 CDT > LOG: database system is shut down
答案1
您可能正在使用端口 5432 运行另一个服务。要验证,请尝试执行ss -lnpt
(如果您不是 root,请使用 sudo)。如果是这种情况,您将能够看到哪个进程正在使用 TCP 端口 5432。