歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux管理 >> Linux服務

Linux服務器關閉SeLinux的方法

A 不需要重啟Linux:
[root@localhost ~]# setenforce 0
B 需要重啟Linux:
vi /etc/selinux/config 將SELINUX=enforcing 改成SELINUX=disabled
-------------
Ref:
SELinux介紹
不重啟Linux服務器關閉SeLinux的方法
 
PS A:
man setenforce:
XXX
XXX WARNING: old character encoding and/or character set
XXX
setenforce(1)         SELinux Command Line documentation         setenforce(1)
 
 
NAME
       setenforce - modify the mode SELinux is running in.
 
 
SYNOPSIS
       setenforce [ Enforcing | Permissive | 1 | 0 ]
 
 
DESCRIPTION
       Use  Enforcing or 1 to put SELinux in enforcing mode.  Use Permissive or 0 to put SELinux in permissive mode.  You need to modify /etc/grub.conf
       or /etc/selinux/config to disable SELinux.
 
 
AUTHOR
       Dan Walsh, <[email protected]>
 
 
SEE ALSO
       selinux(8), getenforce(8), selinuxenabled(8)
 
 
FILES
       /etc/grub.conf, /etc/selinux/config
 
 
[email protected]                7 April 2004                    setenforce(1)

摘自 Simba's
Copyright © Linux教程網 All Rights Reserved