Linux命令收集

1. 查看防火牆狀態

systemctl status firewalld.service

2. 關閉防火牆

systemctl stop firewalld.service

3.禁止防火牆開機啓動

systemctl disable firewalld.service

4. 重啓防火牆使配置生效

systemctl restart firewalld.service 

5. 設置防火牆開機啓動

systemctl enable firewalld.service


注:CentOS默認使用的防火牆是firewalld,如果要安裝iptables防火牆,則運行 yum -y install iptables-services


發佈了35 篇原創文章 · 獲贊 10 · 訪問量 6萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章