Job for nginx.service failed because the control process exited with error code. See “systemctl stat


啟動nginx服務時如果遇到這個錯誤 Job for nginx.service failed because the control process exited with error code. See “systemctl stat 可能原因如下:

1.nginx配置文件有錯誤
運行下面命令查看修改

nginx -t
1
2.已經啟動nginx或者配置文件中的端口號被占用
檢查端口是否被占用
netstat -tnlp
1
如果端口已經被占用,自己權衡一下是換個端口還是把占用端口的進程殺掉

檢查nginx是否已經啟動
ps -aux | grep nginx
1
如果已經啟動使用下面命令干掉即可

pkill -9 nginx
1

---------------------
原文:https://blog.csdn.net/weixin_44486991/article/details/88246972


免責聲明!

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



猜您在找 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. mysql—Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.service" and "journalctl -xe" for details. Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details Job for dhcpd.service failed because the control process exited with error code. See "systemctl status dhcpd.service" and "journalctl -xe" for details.問題 【問題管理】 -- RabbitMQ啟動時報錯:Job for rabbitmq-server.service failed because the control process exited with error code. See "systemctl status rabbl -xe" for details. Docker服務啟動報錯:Job for docker.service failed because the control process exited with error code. Jenkins 安裝啟動提示“iJob for jenkins.service failed because the control process exited with error code. See "systemctl status jenkins.service" and "journalctl -xe" for details.” 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. [linux]DHCP服務器啟動報錯Job for dhcpd.service failed because the control process exited with error code. See “systemctl status dhcpd.service” and “journalctl -xe” for details.
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM