Home >Operation and Maintenance >Linux Operation and Maintenance >How to close selinux
、
How to close selinux?
Turn off SELinux:
1. Temporarily shut down (no need to restart the machine):
setenforce 0
##Set SELinux into permissive mode
##setenforce 1 Set SELinux to enforcing mode
2. To modify the configuration file, you need to restart the machine:
Modify the /etc/selinux/config file
Change Change SELINUX=enforcing to SELINUX=disabled
Just restart the machine
Recommended tutorial: "linux tutorial"
The above is the detailed content of How to close selinux. For more information, please follow other related articles on the PHP Chinese website!