- 链接地址:https://blog.csdn.net/weixin_42812527/article/details/106134717
- 链接标题:Nginx 配置问题 server directive is not allowed here in /etc/nginx/nginx.conf:69_"nginx: [emerg] \"server\" directive is not allowe-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:8915
文章浏览阅读6.2w次,点赞12次,收藏4次。前沿今天在其他服务器上重新配置 nginx.conf 文件,配置结束启动 nginx 发现遇到了这样一个错误,我擦…?我配置文件都是从上个服务器上 复制粘贴过来的,怎么会遇到这个问题呢?百思不得其解,最终在网上百度了一下,得到了解决方案。一、问题 "server" directive is not allowed here in /etc/nginx/nginx.conf:69二、原因三、结论配置信息里边 多加了一个 大括号应该是:http{ server{}}四、解决方案_"nginx: [emerg] \"server\" directive is not allowed here in /etc/nginx/nginx.co"
版权声明:本文发布于特牛生活网 内容均来源于互联网 如有侵权联系删除