045.PGSQL-啟動數據庫報錯Job for postgresql-13.service failed because the control process exited with error code. See "systemctl status postgresql-13.service" and "journalctl -xe" for details.


 

 

[root@s101 /var/lib/pgsql/13/data]#sudo systemctl restart postgresql-13
Job for postgresql-13.service failed because the control process exited with error code. See "systemctl status postgresql-13.service" and "journalctl -xe" for details.

 

 解決辦法  journalctl -xe 查看日志

配置文件有書寫錯誤

 

 

[root@s101 /var/lib/pgsql/13/data]#journalctl -xe

Aug 03 05:58:41 s101 sudo[57753]: root : TTY=pts/1 ; PWD=/var/lib/pgsql/13/data ; USER=root ; COMMAND=/bin/systemctl restart postgresql-13
Aug 03 05:58:41 s101 polkitd[606]: Registered Authentication Agent for unix-process:57754:131258586 (system bus name :1.1018 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Aug 03 05:58:41 s101 polkitd[606]: Unregistered Authentication Agent for unix-process:57754:131258586 (system bus name :1.1018, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Aug 03 05:58:41 s101 systemd[1]: Starting PostgreSQL 13 database server...
-- Subject: Unit postgresql-13.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit postgresql-13.service has begun starting up.
Aug 03 05:58:41 s101 systemd[1]: postgresql-13.service: main process exited, code=exited, status=1/FAILURE
Aug 03 05:58:41 s101 systemd[1]: Failed to start PostgreSQL 13 database server.
-- Subject: Unit postgresql-13.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit postgresql-13.service has failed.
--
-- The result is failed.
Aug 03 05:58:41 s101 systemd[1]: Unit postgresql-13.service entered failed state.
Aug 03 05:58:41 s101 postmaster[57765]: 2021-08-02 21:58:41.154 GMT [57765] LOG: syntax error in file "/var/lib/pgsql/13/data/postgresql.conf" line 661, near token ","
Aug 03 05:58:41 s101 postmaster[57765]: 2021-08-02 21:58:41.154 GMT [57765] FATAL: configuration file "/var/lib/pgsql/13/data/postgresql.conf" contains errors
Aug 03 05:58:41 s101 systemd[1]: postgresql-13.service failed.


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



猜您在找 linux----------啟動network的時候報錯Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details. 啟動Jenkins報錯"Job for jenkins.service failed because the control process exited with error code. See "systemctl status jenkins.service" and "journalctl -xe" for details."解決辦法 centos7啟動MySQL報 Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.service" and "journalctl -xe" for details. Jenkins報錯:Job for jenkins.service failed because the control process exited with error code. See "systemctl status jenkins.service" and "journalctl -xe" for details. docker 啟動失敗 Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details. 啟動Nginx服務失敗:Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details. docker 報錯: Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details. Job for php-fpm.service failed because the control process exited with error code. See "systemctl status php-fpm.service" and "journalctl -xe" for details. Job for postfix.service failed because the control process exited with error code. See "systemctl status postfix.service" and "journalctl -xe" for details. Linux 重啟網卡失敗 Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM