1、找到nginx.conf文件或/etc/nginx/conf.d/default.conf文件
找到修改:
listen 80 default_server;
listen [::]:80 default_server;
修改为:
listen 80;
#listen [::]:80 default_server;
2、重启nginx
service nginx restart
1、找到nginx.conf文件或/etc/nginx/conf.d/default.conf文件
找到修改:
listen 80 default_server;
listen [::]:80 default_server;
修改为:
listen 80;
#listen [::]:80 default_server;
2、重启nginx
service nginx restart