
red hat enterprise linux 7發佈後,發現防火牆也變了,如何關閉防火牆呢,下面是方法
1.查看firewall的狀態
[root@sztech7 ~]# systemctl status firewalld
firewalld.service – firewalld – dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled)
Active: inactive (dead) since 五 2014-05-23 13:29:44 CST; 2min 27s ago
Process: 840 ExecStart=/usr/sbin/firewalld –nofork –nopid $FIREWALLD_ARGS (code=exited, status=0/SUCCESS)
Main PID: 840 (code=exited, status=0/SUCCESS)
5月 23 13:26:41 sztech7 systemd[1]: Started firewalld – dynamic firewall daemon.
5月 23 13:29:42 sztech7 systemd[1]: Stopping firewalld – dynamic firewall daemon…
5月 23 13:29:44 sztech7 systemd[1]: Stopped firewalld – dynamic firewall daemon.
5月 23 13:30:23 sztech7 systemd[1]: Stopped firewalld – dynamic firewall daemon.
[root@sztech7 ~]#

2.臨時停止
[root@sztech7 ~]# systemctl stop firewalld
3.禁用firewall啟動,後重啟後不會自動啟動
[root@sztech7 ~]# systemctl disable firewalld
rm ‘/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service’
rm ‘/etc/systemd/system/basic.target.wants/firewalld.service’
4.確認一下服務禁用
[root@sztech7 ~]# systemctl status firewalld
firewalld.service – firewalld – dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled)
Active: inactive (dead)收起

原創文章,作者:投稿專員,如若轉載,請註明出處:https://www.506064.com/zh-hk/n/255684.html
微信掃一掃
支付寶掃一掃