当我们根据文档,配置好nignx后,启动nignx,会发现,当我们修改了80端口后,

server {        listen       8082;        location / {                root /data/www;        }        location /images/ {                root /data;       }   }

程序依然报

0.0.0.0:80 failed (98: Address already in use)

仔细观察,发现http块的最后,有两条引用

http {    ***         ##         # Virtual Host Configs         ##        include

收藏 打印