Turn off selinux in Linux

1. Temporary closure

setenforce 0

Note: It will still be enabled after restarting the system.

2. Permanently closed

1. vim /etc/selinux/config, SELINUX=disabled, then save and exit.

2. vim /etc/sysconfig/selinux, SELINUX=disabled, then save and exit.

Note: If it does not take effect, just restart 

3. Verification method

Enter the command: getenforce  

おすすめ

転載: blog.csdn.net/m0_37798046/article/details/130339275