Centos7
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 可以啟動和使用它們。
PostgreSQL 已經在執行,但有人手動啟動它,而不是通過 systemd 單元。在嘗試啟動另一個之前終止現有的 PostgreSQL 程序。