How to shut down SELinux
1. Temporarily shut down SELinux
Recommended learning: Linux video
setenforce 0 ##设置SELinux 成为permissive模式 ##setenforce 1 设置SELinux 成为enforcing模式
2. Permanently turn off SELinux
Modify the /etc/selinux/config file
Change SELINUX=enforcing to SELINUX =disabled, restart the machine.
3. Check the SELinux status
◆ /usr/sbin/sestatus -v If the SELinux status parameter is enabled, it is in the open state
SELinux status: enabled
◆ getenforce You can also use this command to check
SELinux is the Mandatory Access Control (MAC) system provided in the 2.6 version of the Linux kernel. Any access by a process must be checked by the rules defined in selinux, and only if it passes can it be accessed. It is the most outstanding new security subsystem in the history of Linux.
For more related tutorials, please pay attention to PHP Chinese website!
The above is the detailed content of How to turn off SELinux. For more information, please follow other related articles on the PHP Chinese website!