1.1 centos7重置root密碼

在linux啓動系統引導界面按下e鍵
在linux16一行的末尾處追加 rd.break
按下Ctrl+X鍵
進入後輸入以下命令
mount -o remount,rw /sysroot
chroot /sysroot
passwd
touch /.autorelabel
exit
rebootlinux

相關文章
相關標籤/搜索