1、重啓Linux服務器系統
2、重啓過程中按e進入界面
3、在Linux16行末尾添加rd.break,然後按ctrl+x 執行
4、輸入
switch_root:/# mount -o remount,rw /sysroot
switch_root:/# chroot /sysroot
sh-4.2# passwd root
輸入新的root密碼:
確認輸入:
sh-4.2# touch /.autorelabel
sh-4.2# exit
switch_root:/# exit
等待重新啓動 =。=
5、具體詳細操作: