无法启动 postgresql 数据库

无法启动 postgresql 数据库

尝试使用 WHM 和 CPANEL 在 Centos7 上设置 Postgresql 它安装得很好,但是当我尝试启动它时,我得到了以下回调


-- Unit postgresql-9.5.service has begun starting up.
Apr 18 15:54:48 node1817.myfcloud.com pg_ctl[25929]: < 2019-04-18 15:54:48.619 UTC >LOG:  could not bind IPv6 socket: Address already in use
Apr 18 15:54:48 node1817.myfcloud.com pg_ctl[25929]: < 2019-04-18 15:54:48.619 UTC >HINT:  Is another postmaster already running on port 5432? If not, wait a
Apr 18 15:54:48 node1817.myfcloud.com pg_ctl[25929]: < 2019-04-18 15:54:48.619 UTC >LOG:  could not bind IPv4 socket: Address already in use
Apr 18 15:54:48 node1817.myfcloud.com pg_ctl[25929]: < 2019-04-18 15:54:48.619 UTC >HINT:  Is another postmaster already running on port 5432? If not, wait a
Apr 18 15:54:48 node1817.myfcloud.com pg_ctl[25929]: < 2019-04-18 15:54:48.619 UTC >WARNING:  could not create listen socket for "localhost"
Apr 18 15:54:48 node1817.myfcloud.com pg_ctl[25929]: < 2019-04-18 15:54:48.619 UTC >FATAL:  could not create any TCP/IP sockets
Apr 18 15:54:49 node1817.myfcloud.com pg_ctl[25929]: pg_ctl: could not start server
Apr 18 15:54:49 node1817.myfcloud.com pg_ctl[25929]: Examine the log output.
Apr 18 15:54:49 node1817.myfcloud.com systemd[1]: postgresql-9.5.service: control process exited, code=exited status=1
Apr 18 15:54:49 node1817.myfcloud.com systemd[1]: Failed to start PostgreSQL 9.5 database server.
-- Subject: Unit postgresql-9.5.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit postgresql-9.5.service has failed.

Mysql 正在运行,我想这可能会覆盖端口。但我不确定如何卸载 mysql,或释放端口以便 Postgresql 可以启动并使用它们。

答案1

PostgreSQL 已在运行,但有人手动启动了它,而不是通过 systemd 单元启动。尝试启动另一个 PostgreSQL 进程之前,请先终止现有的 PostgreSQL 进程。

相关内容