请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

nginx重启出现问题

nginx启动没有问题,kill nginx进程后再次启动也没问题。但是重启就不行。

systemctl restart nginx.service 重启时,会提示 Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.

使用 nginx -tc /etc/nginx/nginx.conf  检查配置文件也没有问题。

https://img1.sycdn.imooc.com//szimg/5aeedcb000014d7d04760083.jpg


systemctl status nginx.service 结果如下图:

https://img1.sycdn.imooc.com//szimg/5aeedabc000171b307660452.jpg

看着好像是说nginx启动失败,但是也能按照老师的教程正常访问页面。



正在回答 回答被采纳积分+3

1回答

Jeson 2018-05-06 19:07:33

看看这个错误提示,说明你系统上,已经有进程在使用80端口了。

https://img1.sycdn.imooc.com//szimg/5aeee1090001621007560124.jpg

可以通过netstat -luntp|grep 80 执行,查看下哪个进程使用了80端口,然后执行kill对应的pid,然后再,再次启动nginx。

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号