Home  >  Article  >  Operation and Maintenance  >  How to turn off SELinux in Linux system

How to turn off SELinux in Linux system

王林
王林Original
2020-07-16 13:16:365460browse

The method to turn off SELinux in Linux system is: 1. Open the config configuration file; 2. Find the configuration [SELINUX=enforcing] and change it to [SELINUX=disabled]; 3. Save the file and exit.

How to turn off SELinux in Linux system

There are usually two ways to shut down SELinux, one is to shut down temporarily and the other is to shut down permanently. Let's introduce these two methods respectively.

(Recommended tutorial: linux tutorial)

1. Temporarily close

and execute the command setenforce 0. After shutting down in this way, SELinux will still be turned on after restarting the system.

2. Permanently close

First open the configuration file, the command is as follows;

vi /etc/selinux/config

How to turn off SELinux in Linux system

Then change SELINUX=enforcing to SELINUX=disabled ;

Finally save the file and exit.

The above is the detailed content of How to turn off SELinux in Linux system. 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