nginx代理配置两个前端,共用一个后端

找到你的nginx 配置文件 find / -name nginx.conf (一般是在/conf.d/nginx.conf里配置) 需要添加一个端口 把配置文件替换成修改后的 ./nginx -t 检查是否有错 重启配置文件 ./nginx -s reload 检查防火墙 systemctl status firewalld 开放刚才你配置的端口 firewall-cmd --zone=publ
相关文章
相关标签/搜索