簡體   English   中英

PostgreSQL 9.6 CentOS 7 LibreTime-postgresql.service的作業失敗

[英]PostgreSQL 9.6 CentOS 7 LibreTime - Job for postgresql.service failed

我正在嘗試將其與LibreTime一起使用,但是由於某種原因,它無法啟動postgresql。

 systemctl start postgresql Job for postgresql.service failed because the control process exited with error code. See "systemctl status postgresql.service" and "journalctl -xe" for details. 

這是journalctl -xe的信息-注意-我出於隱私目的更改了我的實際主機名:

journalctl -xe
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit postgresql.service has begun starting up.
Jun 17 07:53:55 HOSTNAMEHIDDEN pg_ctl[14576]: LOG:  could not bind IPv6
Jun 17 07:53:55 HOSTNAMEHIDDEN pg_ctl[14576]: HINT:  Is another postmas
Jun 17 07:53:55 HOSTNAMEHIDDEN pg_ctl[14576]: LOG:  could not bind IPv4
Jun 17 07:53:55 HOSTNAMEHIDDEN pg_ctl[14576]: HINT:  Is another postmas
Jun 17 07:53:55 HOSTNAMEHIDDEN pg_ctl[14576]: WARNING:  could not creat
Jun 17 07:53:55 HOSTNAMEHIDDEN pg_ctl[14576]: FATAL:  could not create
Jun 17 07:53:56 HOSTNAMEHIDDEN pg_ctl[14576]: pg_ctl: could not start s
Jun 17 07:53:56 HOSTNAMEHIDDEN pg_ctl[14576]: Examine the log output.
Jun 17 07:53:56 HOSTNAMEHIDDEN systemd[1]: postgresql.service: control
Jun 17 07:53:56 HOSTNAMEHIDDEN systemd[1]: Failed to start PostgreSQL d
-- Subject: Unit postgresql.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit postgresql.service has failed.
--
-- The result is failed.
Jun 17 07:53:56 HOSTNAMEHIDDEN systemd[1]: Unit postgresql.service ente
Jun 17 07:53:56 HOSTNAMEHIDDEN systemd[1]: postgresql.service failed.
Jun 17 07:53:56 HOSTNAMEHIDDEN polkitd[470]: Unregistered Authenticatio
lines 1579-1601/1601 (END)

我是CentOS的新手,正在嘗試按照本教程進行操作。 這似乎是唯一的失敗點。 http://libretime.org/manual/preparing-the-server/

在此先感謝您的協助!

-edit-這是完整的代碼,哎呀:

systemctl status postgresql.service -l
● postgresql.service - PostgreSQL database server
   Loaded: loaded (/usr/lib/systemd/system/postgresql.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Sun 2018-06-17 08:30:43 EDT; 18s ago
  Process: 15512 ExecStart=/usr/bin/pg_ctl start -D ${PGDATA} -s -o -p ${PGPORT} -w -t 300 (code=exited, status=1/FAILURE)
  Process: 15507 ExecStartPre=/usr/bin/postgresql-check-db-dir ${PGDATA} (code=exited, status=0/SUCCESS)

Jun 17 08:30:42 HostnameHidden pg_ctl[15512]: LOG:  could not bind IPv6 socket: Address already in use
Jun 17 08:30:42 HostnameHidden pg_ctl[15512]: HINT:  Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
Jun 17 08:30:42 HostnameHidden pg_ctl[15512]: LOG:  could not bind IPv4 socket: Address already in use
Jun 17 08:30:42 HostnameHidden pg_ctl[15512]: HINT:  Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
Jun 17 08:30:42 HostnameHidden pg_ctl[15512]: WARNING:  could not create listen socket for "localhost"
Jun 17 08:30:42 HostnameHidden pg_ctl[15512]: FATAL:  could not create any TCP/IP sockets
Jun 17 08:30:43 HostnameHidden systemd[1]: postgresql.service: control process exited, code=exited status=1
Jun 17 08:30:43 HostnameHidden systemd[1]: Failed to start PostgreSQL database server.
Jun 17 08:30:43 HostnameHidden systemd[1]: Unit postgresql.service entered failed state.
Jun 17 08:30:43 HostnameHidden systemd[1]: postgresql.service failed.

好的,所以這是一個糟糕的“答案”,但是我通過拉下9.6版並安裝了9.3版來“修復”它。

再次感謝。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM