ubuntu 重启nginx遇到错误

原文链接: http://www.cnblogs.com/nofacemale/p/7506109.html

错误如下:Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.

搜索资料查到可能是因为修改了nginx配置文件(/etc/nginx/sites-available/default)没有分号结尾,我又重新审查了我修改的地方,都有结尾。于是我猜测是我修改了主页(配置文件39行)的地方出了问题因为我把所有都删掉了只留下index.php

之后我恢复了默认的配置  只是在其中添加了index.php  重新启动nginx  完美解决  自己给自己留的坑~

只是记录给自己看   各位看官请随意。

转载于:https://www.cnblogs.com/nofacemale/p/7506109.html

猜你喜欢

转载自blog.csdn.net/weixin_30319153/article/details/94799349
今日推荐