SELinux mode switch

CentOS 7 SELinux status is divided into:
enforing #force mode
permissive #warning mode
disabled #disabled mode
Command to view SELinux status:
getenforce command to
change SELinux status:
setenforce 0 (under enforce, temporarily closed)
setenforce 1 (under disabled, temporarily open)
Change the status of selinux by modifying the parameters of the configuration file /etc/sysconfig/selinux:
SELINUX=disabled #disabled-change to the default boot not to start

Guess you like

Origin blog.csdn.net/qq_43750882/article/details/109409445