RedHat 7關閉防火牆方法


1、在之前的版本中關閉防火牆等服務的命令是

service iptables stop

/etc/init.d/iptables stop

2、RHEL7開始,使用systemctl工具來管理服務程序,包括了service和chkconfig

systemctl list-unit-files|grep enabled

 

查看防火牆狀態。
systemctl status firewalld

臨時關閉防火牆命令。重啟電腦后,防火牆自動起來。
systemctl stop firewalld

永久關閉防火牆命令。重啟后,防火牆不會自動啟動。
systemctl disable firewalld

打開防火牆命令。
systemctl enable firewalld


免責聲明!

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



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