阿里雲服務器添加的安全組端口無法訪問


應該是服務器防火牆的問題

1.查看所有信息,看添加的端口是否存在

firewall-cmd --list-all

2.沒有的話添加,例如添加80端口

firewall-cmd --zone=public --add-port=80/tcp --permanent

3.重啟防火牆

firewall-cmd --reload

4.再次查看端口是否打開

firewall-cmd --list-all

添加的端口已存在,完成。

1:查看防火狀態

systemctl status firewalld

service  iptables status

2:暫時關閉防火牆

systemctl stop firewalld

service  iptables stop

3:永久關閉防火牆

systemctl disable firewalld

chkconfig iptables off

4:重啟防火牆

systemctl enable firewalld

service iptables restart  

 

 
         
         
       


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM