1、在grub选项菜单按E进入编辑模式 2、编辑kernel那行 /init 1 (或/single) 3、按B重启 4、进入后执行下列命令 root@#passwd root (设置root的密码) Enter new unix password:输入新的密码 root@#init 6