忘記root密碼——Centos7.6
CD-ROM進入相當於window的WPE,相當於修復工具
點擊一下——fn+F2進入 phoenixBIOS Setup Utility ——Boot—CD-ROM(shift+)——Fn+F10 保存退出
1、裝入光盤,在光盤引導界面選擇troubleshooting:
2、進入troubleshooting菜單 選擇Rescue a centos system
3、進入引導可以按回車,或者等待
按1 在按會車進入sh-4.2#
4、進入救援模式後切根
chroot /mnt/sysimage/
5、修改密碼
passwd root
輸入密碼:Abc123 ###第一次
輸入密碼:Abc123 ###第二次
6、重啓
exit
reboot ###主要改啓動項,否認還是進光盤模式
重啓鼠標點擊一下,快速按Fn+F2進入界面——boot——hard drive——fn+f10 保存退出
7、驗證
登錄:root
密碼:Abc123