nginx代理配置兩個前端,共用一個後端

找到你的nginx 配置文件 find / -name nginx.conf (一般是在/conf.d/nginx.conf裏配置) 需要添加一個端口 把配置文件替換成修改後的 ./nginx -t 檢查是否有錯 重啓配置文件 ./nginx -s reload 檢查防火牆 systemctl status firewalld 開放剛纔你配置的端口 firewall-cmd --zone=publ
相關文章
相關標籤/搜索