web-technical-blog

web開発に関する技術メモ

SELinux機能を無効にする

(1)任意のユーザーで、SELinuxの設定を確認する
# getenforce
Enforcing

(2)「Disabled」となっていない場合、/etc/selinux/configを編集し、
SELinuxを無効(SELINUX=disabled)に変更する
# setenforce 0
# sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
# grep 'SELINUX=' /etc/selinux/config
# SELINUX= can take one of these three values: SELINUX=disabled

(3)SELinuxの設定を確認する
# getenforce
Permissive