首页 > 系统服务 > 详细

Ubuntu 重启 Nginx 失败,* Restarting nginx nginx ...fail!

时间:2015-09-27 12:23:48      阅读:308      评论:0      收藏:0      [点我收藏+]

原因是你配置 nginx 的配置文件出了错误

查找错误,处理方法

$ sudo nginx -t

nginx: [emerg] "location" directive is not allowed

here in /etc/nginx/nginx.conf:11

nginx: configuration file /etc/nginx/nginx.conf

test failed1

根据错误信息,修改对应生的配置文件即可。

 

转自: http://www.linuxidc.com/Linux/2015-07/119754.htm

Ubuntu 重启 Nginx 失败,* Restarting nginx nginx ...fail!

原文:http://www.cnblogs.com/pinganzi/p/4842016.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!