關閉centos防火牆

#查看防火牆狀態
firewall-cmd --state

#停止firewall
systemctl stop firewalld.service 

#禁止firewall開機啓動
systemctl disable firewalld.service 

如果以上設置成功之後,依舊無法 ping 通

vi /etc/resolv.conf

#修改或添加
nameserver 61.139.2.69
 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章