美文网首页大前端
nginx: [warn] conflicting server

nginx: [warn] conflicting server

作者: 天問_专注于大前端技术 | 来源:发表于2022-01-12 14:43 被阅读0次

    修改nginx配置后,使用 nginx -t 命令检查,提示 nginx: [warn] conflicting server name "127.0.0.1" on 0.0.0.0:8010, ignored

    nginx

    完整输出如下:

    nginx: [warn] conflicting server name "127.0.0.1" on 0.0.0.0:8010, ignored
    nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
    nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
    

    经检查是 nginx.conf 配置文件中的 server 使用了重复的端口号,删除或修改其他端口号,就不会有这个 warn 了。


    欢迎访问:天问博客

    相关文章

      网友评论

        本文标题:nginx: [warn] conflicting server

        本文链接:https://www.haomeiwen.com/subject/geywcrtx.html