故障现象:selinux 配置 disabled 后开机卡在滚动条无法进系统
解决思路:单用户模式下修改修改selinux 配置
单用户进入方式
1)开机按 键盘 e 进入系统
2)找到 linux16 开始,LANG=zh_CN.UTF-8结尾一行,尾部加 ( 空格 加上 selinux=0)
3)然后 ctrl + x 启动,就看到熟悉的登录界面。
修改正确selinux
vim /etc/selinux/config
vim /etc/selinux/config
This file controls the state of SELinux on the system.
SELINUX= can take one of these three values:
enforcing - SELinux security policy is enforced.
permissive - SELinux prints warnings instead of enforcing.
disabled - No SELinux policy is loaded.
SELINUX=disabled
SELINUXTYPE= can take one of three two values:
targeted - Targeted processes are protected,
minimum - Modification of targeted policy. Only selected processes are protected.
mls - Multi Level Security protection.
SELINUXTYPE=targeted
原文地址:http://blog.51cto.com/adcit/2129403
时间: 2024-10-11 11:28:34