1、启动操作系统,在grub选项菜单按e进入编辑模式。如上图: 第二行,然后按‘e’键进入下图,“e” to edit the selected command in the boot sequence。 在 <100 rhgb quiet 后面输入 single ,如上图所示,输入完后按 回车 按 b ,重启动到single-user mode,进入单用户模式 (Press “b” to boot) 输入命令 passwd root 从而更改root帐号的密码 reboot 重启后输入 username:root password:刚创建root的密码