Home  >  Article  >  Operation and Maintenance  >  How to close selinux

How to close selinux

hzc
hzcOriginal
2020-06-13 14:07:236368browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn