天天看點

Job for nginx.service failed because the control process exited with error code. 解決方法

啟動nginx:

systemctl start nginx
           

顯示以下錯誤:

Job for nginx.service failed because the control process exited with error code. 解決方法

解決方法:

檢查nginx是否已經啟動:

ps -aux | grep nginx
           

如果啟動:

Job for nginx.service failed because the control process exited with error code. 解決方法

則執行以下指令關閉:

pkill -9 nginx
           

然後再重新啟動:

systemctl start nginx
           

繼續閱讀