To reduce commissioning time, quickly deploy server environments, and sometimes we need to temporarily turn off SELinux
1. Query the SELinux status:getenforce
Status value, enforcing,permissive,disabled
Enforcing: Forced mode, in operation
Permissive: Tolerant mode, only the prompt message, usually used to debug
Disable: Off mode, SELinux not running
2. Switch SELinux mode:setenforce
can switch between enforcing and permissive
Setenforce 1, switch to enforcing
Setenforce 0, switch to permissive
Configuration file for 3.SELinux:/etc/selinux/config
In addition to using the Setenforce switch mode, you can also configure the SELinux run mode in this configuration file.
Specify different values for the configuration options SELinux, and the optional values are enforcing,permissive,disabled.
Restart the machine when the configuration is complete
Turn off SELinux ...