nginx+阿里雲服務器公網ip不能訪問

1.首先排查配置文件是否正確     nginx -t 2.在阿里雲控制檯,安全組內添加nginx的端口規則 3.檢查防火牆     systemctl status firewalld.service 4.查看nginx運行狀態     systemctl status nginx 注意:網上排查方法很多,我遇到坑的一點,全部按照做完之後,服務都重啓了,還是不能訪問,重啓了下服務器好了
相關文章
相關標籤/搜索