Disable SELinux on CentOS/RHEL
To disable SELinux
Method 1
1 2 |
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config setenforce 0 |
Method 2
edit file
1 |
vi /etc/selinux/config |
Find
1 |
SELINUX=enforcing |
Replace with
1 |
SELINUX=disabled |
Reboot the server with
1 |
reboot |
You can disable selinux for current session by running command
1 |
setenforce 0 |
See SELinux