169编辑外网访问配置文件
location ^~/contact-web {proxy_pass http://127.0.0.1:8990/contact-web;}
重启nginx
#nginx -t#检测配置文件内容是否有误#/etc/init.d/nginx reload #重载,,#线上服务,尽量不重启。#/etc/init.d/nginx restart上面两部就行了#清除nginx缓存npinx -s reload
扩展
查看端口是否被占用
没有被占用
时间:2021-03-12 14:06:46
169编辑外网访问配置文件
location ^~/contact-web {proxy_pass http://127.0.0.1:8990/contact-web;}
重启nginx
#nginx -t#检测配置文件内容是否有误#/etc/init.d/nginx reload #重载,,#线上服务,尽量不重启。#/etc/init.d/nginx restart上面两部就行了#清除nginx缓存npinx -s reload
查看端口是否被占用
没有被占用