Temporarily disable SELinux until the next server reboot, run this command:
To temporarily disable SELinux, run this command:
sudo setenforce 0
To temporarily enable SELinux, run this command:
sudo setenforce 1
Permanently disable SELinux
To disable SELinux permanently so that it continues to be disabled after a reboot, follow these steps.
- Edit ``/etc/selinux/config` and search for this line:
SELINUX=enforcing
- And change it to this:
SELINUX=disabled
- Now, the change is permanent. After the server is rebooted, SELinux will continue to be disabled.