不正常關機 開起一直進不了系統登陸界面
幾次後看見提示(纔開始學習,見諒)
提示:failed to load SELinux policy
上網查了一些,對於自己這個問題得到解決的辦法(轉到這裏,讓自己以後不用再網上查相同的問題,對以後學習複習還是有幫助)
解決辦法
1.、重啓時按 E,進入 grub 頁面。
2、在大約 16 行,language 後,也就是 LANG=_.UTF-8後加入空格,再加上
selinux=0
3、按 ctrl + x 啓動,即看到錄界面,再執行
vim /etc/selinux/config
4、修改文件內容如下,主要是非註釋行。
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
5、修改完 按vim 命令 :wq! 保存,重啓機器。
上面轉載。