RedHat 7 關閉防火牆及SElinux
RedHat 7.x 預設不再用iptables管理防火牆,相關命令如下:
一、關閉防火牆
1. 檢視防火牆狀態
systemctl status firewalld
2. 實時關閉(重啟恢復)
systemctl stop firewalld
3. 檢視防火牆服務是否開機啟動
systemctl is-enabled firewalld
4. 永久關閉
systemctl disable firewalld
二、關閉SELinux
1. 檢視當前SELinux狀態
getenforce
2. 實時關閉(重啟恢復)
setenforce 0
3. 永久關閉
vim /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=permissive #修改為disabled
# SELINUXTYPE= can take one of three two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
一、關閉防火牆
1. 檢視防火牆狀態
systemctl status firewalld
2. 實時關閉(重啟恢復)
systemctl stop firewalld
3. 檢視防火牆服務是否開機啟動
systemctl is-enabled firewalld
4. 永久關閉
systemctl disable firewalld
二、關閉SELinux
1. 檢視當前SELinux狀態
getenforce
2. 實時關閉(重啟恢復)
setenforce 0
3. 永久關閉
vim /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=permissive #修改為disabled
# SELINUXTYPE= can take one of three two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/12707874/viewspace-2141432/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Redhat關閉SELinux和防火牆的辦法RedhatLinux防火牆
- SElinux以及防火牆的關閉Linux防火牆
- centos7關閉防火牆命令 centos7永久防火牆關閉CentOS防火牆
- CentOS 7關閉防火牆CentOS防火牆
- CentOS7關閉防火牆CentOS防火牆
- Centos7 關閉防火牆CentOS防火牆
- linux修改主機名、關閉防火牆、selinuxLinux防火牆
- Linux 7關閉防火牆方法Linux防火牆
- CentOS7關閉防火牆方法CentOS防火牆
- ubuntu 關閉防火牆命令 ubuntu怎樣關閉防火牆Ubuntu防火牆
- Centos7設定關閉防火牆CentOS防火牆
- CentOS關閉防火牆CentOS防火牆
- OpenSUSE關閉防火牆防火牆
- CentOS7檢視和關閉防火牆CentOS防火牆
- centos7怎麼永久關閉防火牆CentOS防火牆
- win10關閉防火牆方法_w10如何關閉防火牆Win10防火牆
- 關閉centos的防火牆CentOS防火牆
- linux 關閉防火牆Linux防火牆
- linux關閉防火牆命令 linux防火牆關閉和開啟命令Linux防火牆
- ubuntu下開啟/關閉防火牆 及埠 - 命令Ubuntu防火牆
- win10怎麼關閉防火牆 win10關閉防火牆的方法Win10防火牆
- Linux中關閉防火牆Linux防火牆
- linux關閉防火牆命令是什麼 linux永久關閉防火牆命令分享Linux防火牆
- win10關閉防火牆提示怎麼關閉_win10關閉防火牆提示徹底關閉操作方法Win10防火牆
- 檢視 SELinux狀態及關閉SELinuxLinux
- CentOS7使用firewalld開啟關閉防火牆與埠CentOS防火牆
- 如何開啟或關閉win7自帶防火牆?Win7防火牆
- Win10系統如何關閉防火牆_win10防火牆徹底關閉方法Win10防火牆
- 怎麼關閉防火牆win10_win10防火牆徹底關閉操作方法防火牆Win10
- win10防火牆如何關閉 筆記本win10防火牆強制關閉Win10防火牆筆記
- win10如何關閉域防火牆_win10域網路防火牆關閉方法Win10防火牆
- Win10系統防火牆怎麼關閉 win10防火牆在哪裡關閉Win10防火牆
- Linux——防火牆、SELinux規則Linux防火牆
- ubuntu 開啟/關閉ubuntu防火牆Ubuntu防火牆
- 【OS】Linux如何關閉防火牆Linux防火牆
- Linux下檢視、關閉及開啟防火牆命令Linux防火牆
- win10關閉防火牆服務方法_win10防火牆怎麼關閉服務Win10防火牆
- win10防火牆關閉提醒如何操作 win10怎麼關閉防火牆提醒通知Win10防火牆