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端口为什么还监听呢 还有其他配置文件,
检查一下线索 include /etc/nginx/conf.d/*.conf;
{:3_191:}{:3_196:}
页:
[1]