A does not need to restart Linux: [root @ localhost ~] # Setenforce0B Linux needs to be restarted: vi/etc/selinux/config change SELINUXenforcing to SELINUXdisabled ------------- Ref: SELinux introduces how to disable SeLinux without restarting Linux server... A does not need to restart Linux:
[Root @ localhost ~] # Setenforce 0
B. restart Linux:
Vi/etc/selinux/config change SELINUX = enforcing to SELINUX = disabled
-------------
Ref:
SELinux introduction
How to disable SeLinux without restarting the Linux server
Ps:
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.
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,
SEE ALSO
Selinux (8), getenforce (8), selinuxenabled (8)
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service