How to close SELinux
1. Temporarily close SELinux
Recommended learning: Linux video
setenforce 0 ##Set SELinux to become permissive mode ##setenforce 1 Set SELinux to become enforcing mode
2, permanently close SELinux
Modify /etc/selinux/config file
Change SELINUX=enforcing to SELINUX=disabled and restart the machine.
3. View SELinux status
◆ /usr/sbin/sestatus -v If the SELinux status parameter is enabled, it is enabled
SELinux status: enabled
◆ getenforce can also use this command to check
SELinux is the enforcement provided in the 2.6 version of the Linux kernel Access Control (MAC) system. The access of any process must pass the rule check defined in selinux, and the access can only be accessed if it passes. 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 close SELinux, please pay attention to other related articles on 1024programmer.com for more information!