Centos中root密码重置的实现及步骤详解
在虚拟机安装了Centos,今天要开机却忘记了密码,于是开始上网查找重新设置的方法,经过实验操作,确实有效,现将方法记录如下:
1、开机后按“e”,进入编辑选择,如图:

2、然后再按“e”,进入另外一个选择框:

3、选择第二项,然后在按“e”。

4、在后入输入“ single” , 记住有个空格,然后回车。又出现了下面的选择框。

5、这时候选择第二项,然后输入“b”。出现命令行,

6、这时候修改密码 passwd,然后重启 reboot
感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!