1- 在啟動grub選單,選擇編輯選項啟動
?
2 - 按鍵盤e鍵,來進入編輯界面
?
3 - 找到Linux 16的那一行,將ro改為rw init=/sysroot/bin/sh
?
4 - 現在按下 Control+x ,使用單用戶模式啟動
?
5 - 現在,可以使用下面的命令訪問系統 chroot /sysroot
6 - 重置密碼 passwd root
7 - 更新系統資訊 touch /.autorelabel
8 - 退出chroot exit
9 - 重啟你的系統 reboot
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/153328.html
標籤:Linux
下一篇:MySQL陳述句使用。
