天天看点

4.1忘记centos的root密码

作者:扒卦小君君

1 重启linux系统

4.1忘记centos的root密码

3 秒之内要按一下回车,出现如下界面

4.1忘记centos的root密码

然后输入e

4.1忘记centos的root密码

在 第二行最后边输入 single,有一个空格。具体方法为按向下尖头移动到第二行,按“e”进入编辑模式

4.1忘记centos的root密码

在后边加上single 回车

4.1忘记centos的root密码

最后按“b”启动,启动后就进入了单用户模式了

4.1忘记centos的root密码

此时已经进入到单用户模式了,你可以更改root密码了。更密码的命令为 passwd

4.1忘记centos的root密码

继续阅读