Tips for viewing SELinux status and SELinux disabling methods
Most people who use SELinux-ready releases, such as Fedora, Red Hat Enterprise Linux (RHEL), Debian, or Centos. They enable SELinux in the kernel and provide a customizable security policy. They also provide many user-layer libraries and tools that can use the SELinux function. How can I check the SELinux status? How can SELinux be disabled?
View SELinux status:
1./usr/sbin/sestatus-v # If The SELinux status parameter is enabled, it is enabled.
SELinux status: enabled
2. getenforce # You can also use this command to check
Disable SELinux:
1. temporarily shut down (no need to restart the machine ):
Setenforce 0 # Set SELinux to permissive Mode
# Setenforce 1 Set SELinux to enforcing Mode
2. to modify the configuration file, restart the machine:
Modify the/etc/selinux/config file
Change SELINUX = enforcing to SELINUX = disabled
Restart the machine.