本篇內容主要講解“RedHat7怎么關閉防火墻”,感興趣的朋友不妨來看看。本文介紹的方法操作簡單快捷,實用性強。下面就讓小編來帶大家學習“RedHat7怎么關閉防火墻”吧!
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
到此,相信大家對“RedHat7怎么關閉防火墻”有了更深的了解,不妨來實際操作一番吧!這里是億速云網站,更多相關內容可以進入相關頻道進行查詢,關注我們,繼續學習!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。