SELinux模式切换

CentOS 7 SELinux状态分为:
enforing #强制模式
permissive #警告模式
disabled #禁用模式
查看SELinux状态的命令:
getenforce
更改SELinux状态的命令:
setenforce 0 (enforce下,暂时关闭)
setenforce 1 (disable下,暂时打开)
通过修改配置文件/etc/sysconfig/selinux的参数来更改selinux的状态:
SELINUX=disabled #禁用–改成默认开机不启动

猜你喜欢

转载自blog.csdn.net/qq_43750882/article/details/109409445
今日推荐