Enable & Disable SELinux on CentOS
SELinux is a security enhancement to Linux which allows users and administrators more control over access control.Access can be constrained on such variables as which users and applications can access which resources.
Disable SELinux
# setenforce 0
Enable SELinux
# setenforce 1
No need to reboot the system.
Disable SELinux permanently
Open file /etc/selinux/config
SELINUX=enforcing to SELINUX=disabled
Reboot the system.