hyong2011 发表于 2014-08-26 15:39

NGINX之端口监听问题

配置如下:
http {
    include       /etc/nginx/mime.types;
    default_typeapplication/octet-stream;

    log_formatmain'$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';

    access_log/var/log/nginx/access.logmain;

    sendfile      on;
    #tcp_nopush   on;

    keepalive_timeout65;

    #gzipon;

    include /etc/nginx/conf.d/*.conf;

    server {
      listen30001;
      server_name   localhost;

      location / {
                proxy_passhttp://google.com/;
      }
    }
}

监听的端口如下,神啦,救救我吧!@

tcp      0      0 0.0.0.0:80                  0.0.0.0:*                   LISTEN      1713/nginx.conf   
tcp      0      0 0.0.0.0:30001               0.0.0.0:*                   LISTEN      1713/nginx.conf   

我没开80端口为什么还监听呢

action08 发表于 2014-08-26 22:07

还有其他配置文件,


检查一下线索    include /etc/nginx/conf.d/*.conf;

hyong2011 发表于 2014-09-04 10:49

{:3_191:}{:3_196:}
页: [1]
查看完整版本: NGINX之端口监听问题