Disable SeLinux in Linux
Selinux is an acronym for Security-enhanced Linux. SELinux is a Linux feature that provides the mechanism for supporting access control security policies in the Linux kernel. It is a set of kernel modifications and user-space tools. To disable SELinux temporarily run the following command on shell.
$ sudo echo 0 > /selinux/enforce
or you can do the same with the other method:
$ sudo setenforce 0
To disable SELinux permanently open the SeLinux configuration file and make the following changes.
$ sudo vi /etc/selinux/config
SELINUX=permissive (or disabled)
SELINUX=permissive (or disabled)
After making the changes you need to reboot the server so that changes can take effect.