centos7破解root密码
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
建议阅读
- bat 脚本获取当前路径与目录(查看: 1673)
- Centos7 安装Nginx的步骤(查看: 911)
- Linux为新硬盘创建LVM(查看: 1057)
- 关于我们(查看: 2701)
- Windows开启内核转储(Core Dump)配置说明(查看: 17637)