執行 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