CentOS7的救援模式,有點相似windows PE系統。進入救援模式,須要使用安裝光盤。
重啓機器,使用光盤引導,進入下圖所示,選擇"Troubleshooting",回車.
選擇"Rescue a CentOS Linux system",回車。
而後選擇1)Continue,回車。
接下來,這裏再回車。
此時已登錄到救援模式,輸入下面命令,把root密碼修改。
chroot /mnt/sysimage/ #切換到原系統,下面可使用原系統命令啦。windows
passwd rootide