SELinux is described as a mandatory access control (MAC) security structure executed in the kernel. SELinux offers a means of enforcing some security policies which would otherwise not be effectively implemented by a System Administrator.
The SELinux feature or service is enabled by default, due to this some applications on your system may not actually support this security mechanism. Therefore, to make such applications function normally, you have to disable or turn off SELinux.
Disable SELinux Temporarily
To disable SELinux temporarily, issue the command below as root:
# echo 0 > /selinux/enforce
Alternatively, you can use the setenforce tool:
# setenforce 0
Else, use the Permissive option instead of 0:
# setenforce Permissive
Disable SELinux Permanently
To permanently disable SELinux, use your favorite text editor to open the file /etc/sysconfig/selinux
# nano /etc/sysconfig/selinux
Then change the directive SELinux=enforcing to SELinux=disabled
Then, save and exit the file, for the changes to take effect, you need to reboot your system and then check the status of SELinux using sestatus: