Home  >  Article  >  Operation and Maintenance  >  Linux temporary and permanent shutdown of Selinux

Linux temporary and permanent shutdown of Selinux

藏色散人
藏色散人forward
2019-09-17 14:26:343153browse

Linux temporary and permanent shutdown of Selinux

View the current Selinux status: getenforce

Linux temporary and permanent shutdown of Selinux

Temporarily shut down Selinux: setenforce 0

Linux temporary and permanent shutdown of Selinux

Permanently shut down Selinux:

vim /etc/sysconfig/selinux
将
SELINUX=enforcing
改成
SELINUX=disabled

Linux temporary and permanent shutdown of Selinux

Related recommendations: "Linux Tutorial"

The above is the detailed content of Linux temporary and permanent shutdown of Selinux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:learnku.com. If there is any infringement, please contact admin@php.cn delete