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 扩展 查看端口是否被占用 没有被占用