1、重啟Linux系統(tǒng)主機并出現(xiàn)引導(dǎo)界面時,按下鍵盤上的e鍵進(jìn)入內(nèi)核編輯界面

2、在linux16參數(shù)這行的最后面追加“rd.break”參數(shù),然后按下Ctrl + X組合鍵來運行修改過的內(nèi)核程序

3、大約30秒過后,進(jìn)入到系統(tǒng)的緊急求援模式

4、依次輸入以下命令,等待系統(tǒng)重啟操作完畢,然后就可以使用新密碼登錄Linux系統(tǒng)了
mount -o remount,rw /sysroot
chroot /sysroot
passwd
touch /.autorelabel
exit
reboot
