Viewing SELinux status and disabling SELinux is not specified
Source: Internet
Author: User
View SELinux status: 1./usr/sbin/sestatus-v # if the SELinuxstatus parameter is enabled, SELinuxstatus is enabled: enabled2, getenforce # You can also use this command to check and disable SELi... "/> <scriptt viewing SELinux status: 1./usr/sbin/sestatus-v # if the SELinux status parameter is enabled, SELinux status is enabled: enabled2, getenforce # You can also use this command to check and disable SELinux: 1. temporarily disable (you do not need to restart the machine ): setenforce 0 # set SELinux to permissive mode # setenforce 1 set SELinux to enforcing mode 2. modify the configuration file and restart the machine: modify the/etc/selinux/config file and change SELINUX = enforcing to SELINUX = disabled to restart the machine.
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.