Linux重新啟動(dòng)后提示 Failed to load SELinux policy. Freezing系統(tǒng)卡住
Linux重新啟動(dòng)后提示 Failed to load SELinux policy. Freezing系統(tǒng)卡住
歡迎來(lái)到藍(lán)隊(duì)云技術(shù)小課堂,每天分享一個(gè)技術(shù)小知識(shí)。
Linux重新啟動(dòng)后提示 Failed to load SELinux policy. Freezing系統(tǒng)卡住無(wú)法啟動(dòng)

重新啟動(dòng)之前修改了selinux的配置,disable selinux,估計(jì)多半是修改的時(shí)候哪里改錯(cuò)了。
解決方案是在系統(tǒng)啟動(dòng)時(shí)找到 linux16 那一行,在啟動(dòng)配置像里加一項(xiàng)selinux=0。具體做法是在啟動(dòng)頁(yè)面,選擇要啟動(dòng)的內(nèi)核按E,找到linux16那一行,改好后如圖:
然后按ctrol+X,系統(tǒng)可以啟動(dòng)了,啟動(dòng)后檢查配置文件/etc/selinux/config中的“SELINUX”參數(shù)的值:
錯(cuò)誤非常明顯,改成下面的就正常了:
cat /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 values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
藍(lán)隊(duì)云官網(wǎng)上擁有完善的技術(shù)支持庫(kù)可供參考,大家可自行查閱,更多技術(shù)問(wèn)題,可以直接咨詢。同時(shí),藍(lán)隊(duì)云整理了運(yùn)維必備的工具包免費(fèi)分享給大家使用,需要的朋友可以直接咨詢。
更多技術(shù)知識(shí),藍(lán)隊(duì)云期待與你一起探索。
會(huì)員登錄
賬號(hào)登錄還沒(méi)有賬號(hào)?立即注冊(cè)