关于nginx的Job for nginx.service failed because the control process exited with error code.错误

执行 service nginx start或者restart命令出现下面错误

[root@localhost ~]# service nginx restart
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.

莫名奇妙的出现了这个错误,查看logs也没什么发现,之后就停止了nginx的进程,再运行service nginx start,又可以了,具体出错原因现在还不清楚。

查看nginx进程命令

 ps -ef | grep  nginx

pkill -9 nginx

原文地址: http://blog.csdn.net/jxncwwh/article/details/74459112

原文地址:https://www.cnblogs.com/zjj1990/p/8566044.html