Use the setenforce command of linux to set the SELinux state
This article mainly introduces the use of linux setenforce command to set SELinux status, the article is very detailed, has a certain reference value, interested friends must read it!
The setenforce command is used to turn SELinux on and off.
Syntax format: setenforce [parameters]
Common parameters:
Reference example
Enable SELinux:
[root@linuxcool ~] # setenforce 1
Turn off SELinux:
[root@linuxcool ~] # setenforce 0
The above is all the contents of setting the SELinux status using linux's setenforce command, thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!