首页 > 解决方案 > 无法启动 postgresql 服务器 [无法绑定 IPv4 套接字:权限被拒绝]

问题描述

我正在尝试通过 Ubuntu 控制台在我的本地 Windows 机器上启动我的 PostgreSQL 9.4 数据库服务器。我正在运行命令sudo service postgresql start,但收到以下错误输出:

The PostgreSQL server failed to start. Please check the log output:
2020-02-25 09:57:30.216 CST [497] LOG:  could not bind IPv4 socket: Permission denied
2020-02-25 09:57:30.216 CST [497] HINT:  Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
2020-02-25 09:57:30.217 CST [497] WARNING:  could not create listen socket for "localhost"
2020-02-25 09:57:30.217 CST [497] FATAL:  could not create any TCP/IP sockets       [fail]

如何检查另一个 postmaster 是否已经在端口 5432 上运行?如果有,我将如何阻止它?谢谢!

标签: ruby-on-railspostgresqlsocketsserverpostgresql-9.4

解决方案


推荐阅读