小米关闭selinux 如何关闭Linux里边的selinux?

如何关闭Linux里边的selinux?1、检查SELinux status命令:1、/usr/SBIN/sestatus-V#;如果SELinux status参数已启用,则它处于打开状态。SELi

如何关闭Linux里边的selinux?

1、检查SELinux status命令:1、/usr/SBIN/sestatus-V#;如果SELinux status参数已启用,则它处于打开状态。SELinux状态:enabled 2,getenforce#;您也可以使用此命令检查。2关闭SELinux方法:1。临时关闭(不重新启动计算机):setenforce 0#set SELinux to permission mode#setenforce 1 set SELinux更改配置文件以重新启动计算机:修改/etc/SELinux/config文件以将SELinux=enabling更改为SELinux=disabled并重新启动计算机