首页 > 其他 > 详细

nginx启动报错

时间:2019-11-09 13:49:30      阅读:95      评论:0      收藏:0      [点我收藏+]

nginx启动的时候报错

nginx: [emerg] invalid number of arguments in "root" directive in /etc/nginx/nginx.conf:45

检查一下 nginx.conf

include conf.d/b.conf;
include conf.d/c.conf;
include conf.d/a.conf
include conf.d/d.conf

发现少了分号。。。。。。

加上之后重启 nginx 即可

# nginx -t    //检测有没有错误
# nginx -s -reload

 

nginx启动报错

原文:https://www.cnblogs.com/lyc94620/p/11825346.html

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