启动nginx时报错: Job for nginx.service failed because the control process exited with error code

当使用命令启动或重启nginx时报如下错误:

>>> 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.
 

原因:应该是修改过 /etc/nginx/nginx.conf文件,致使文件不符合规范,比如少写分号等.

猜你喜欢

转载自blog.csdn.net/chen1042246612/article/details/86573723