How to disable SELinux?
- Step 1: Open the SELinux configuration file: /etc/selinux/config.
- Step 2: Locate the following line:
-
1SELINUX=enforcing
- Step 3: Change the value to disabled:
-
1SELINUX=disabled
- Step 4: Save your changes and close the file
- Step 5: On the next reboot, SELinux is permanently disabled. To dynamically disable it before the reboot, run the following command:
-
1# setenforce 0