By default, when we installed the Linux, The SELinux service is enabled, Some software’s do not support SELinux, So we need to disable or turn off the SELinux config.
In this article we will show you how to disable SELinux on CentOS.
Disable SELinux on CentOS 7
First we need to check how SELinux is configured, execute the following command:
Sestatus
Open selinux configuration file:
### nano /etc/sysconfig/selinux
Change “SELINUX=enforcing” to “SELINUX=disabled” and save the configuration file:
Reboot your Linux system to take effect.
reboot
After reboot, you can verify the status of SELinux. Issue “sestatus” command to verify that SELinux is permanently disabled:
### sestatus SELinux status: disabled
Congratulation’s! You have successfully disable SELinux.