
文章插圖
red hat enterprise linux 7發(fā)布后,發(fā)現(xiàn)防火墻也變了,如何關(guān)閉防火墻呢,下面是方法
1.查看firewall的狀態(tài)
[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.臨時(shí)停止
[root@sztech7 ~]# systemctl stop firewalld
3.禁用firewall啟動(dòng),后重啟后不會(huì)自動(dòng)啟動(dòng)
[root@sztech7 ~]# systemctl disable firewalld
rm ‘/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service’
rm ‘/etc/systemd/system/basic.target.wants/firewalld.service’
4.確認(rèn)一下服務(wù)禁用
[root@sztech7 ~]# systemctl status firewalld
firewalld.service – firewalld – dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled)
Active: inactive (dead)收起
以上關(guān)于本文的內(nèi)容,僅作參考!溫馨提示:如遇健康、疾病相關(guān)的問(wèn)題,請(qǐng)您及時(shí)就醫(yī)或請(qǐng)專業(yè)人士給予相關(guān)指導(dǎo)!
「愛(ài)刨根生活網(wǎng)」www.malaban59.cn小編還為您精選了以下內(nèi)容,希望對(duì)您有所幫助:- 阿里云服務(wù)器租用費(fèi)用 阿里云服務(wù)器怎么樣
- 國(guó)內(nèi)免備案云主機(jī)推薦 免備案云服務(wù)器哪家好
- 磁盤分區(qū)及格式化 linux格式化磁盤命令
- 騰訊云服務(wù)器使用教程 服務(wù)器和云服務(wù)器有什么區(qū)別
- exchange服務(wù)器搭建步驟 exchange郵箱怎么設(shè)置服務(wù)器
- 獲取本機(jī)ip地址命令 linux查詢ip地址命令
- 自己搭建服務(wù)器步驟 服務(wù)器熱備份怎么做
- 國(guó)內(nèi)外個(gè)人免費(fèi)云服務(wù)器 服務(wù)器購(gòu)買渠道
- 防止ddos攻擊手段 服務(wù)器如何抗ddos攻擊
- 服務(wù)器錯(cuò)誤404解決方法 出現(xiàn)404錯(cuò)誤頁(yè)面怎么解決
