nginx启动报错

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

 

posted @ 2019-11-09 13:17  凌雨尘  阅读(585)  评论(0编辑  收藏  举报