nginx启动失败之nginx: [emerg] invalid number of arguments in "root" directive in nginx/nginx.conf:41
出现这个报错说明root的参数不对,网上目前有以下几种答案:
句尾忘记加分号
路径中文件名使用了中文
路径中有空格
我再来补充一种:路径中的斜杠与反斜杠问题。
本来我的路径是这样的
location / {
root F:\2018;
index index.html;
}
没有报错,后来我想把根目录具体到一个项目,改成了这样
location / {
roo...
原创
2018-11-16 19:10:26 ·
4890 阅读 ·
0 评论