天天看點

selinux

<b>1 永久方法 – 需要重新開機伺服器</b>

修改/etc/selinux/config檔案中設定SELINUX=disabled ,然後重新開機伺服器。

<b>2 臨時方法 – 設定系統參數</b>

使用指令setenforce 0

<b>附:</b>

setenforce 1 設定SELinux 成為enforcing模式

setenforce 0 設定SELinux 成為permissive模式

3 getenforce 檢視