Redhat EnterpriseLinux RHEL 關閉SeLinux
檢視SELinux狀态:
1、/usr/sbin/sestatus -v ##如果SELinux status參數為enabled即為開啟狀态
SELinux status: enabled
2、getenforce ##也可以用這個指令檢查
關閉SELinux:
3、臨時關閉(不用重新開機機器):
setenforce 0 ##設定SELinux 成為permissive模式
##setenforce 1 設定SELinux 成為enforcing模式
4、修改配置檔案,需要重新開機機器:
修改/etc/selinux/config 檔案
将SELINUX=enforcing改為SELINUX=disabled
重新開機機器即可
歡迎轉載和交流,有問題可聯系 QQ: 83555727 或Email [email protected]com