无法在端口 5432 上运行 PostgreSQL

无法在端口 5432 上运行 PostgreSQL

当我尝试在端口 5432 上启动 PostgreSQL 时,它失败了,提示无法连接到 tcp 地址。但是,将配置更改为端口 5433 后,它就可以正常启动了。

waiting for server to start....2018-10-24 10:23:20.330 DST [745] LOG: could not bind IPv4 address "127.0.0.1": Permission denied 2018-10-24 10:23:20.330 DST [745] HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry. 2018-10-24 10:23:20.348 DST [745] WARNING: could not create listen socket for "localhost" 2018-10-24 10:23:20.363 DST [745] FATAL: could not create any TCP/IP sockets 2018-10-24 10:23:20.366 DST [745] LOG: database system is shut down stopped waiting pg_ctl: could not start server Examine the log output.

我运行sudo netstat -peanut | grep ":5432 "检查是否有东西占用了这个端口。但是它没有列出任何东西。

可能是什么原因呢?

相关内容