1. 开机进入引导界面,按e,然后 linux /vmlinuz 行security前 添加1init=/bin/bash console=tty0 2. ctrl+x 或者按F10进入单用户模式3. passwd (忘记密码的用户名)4. /sbin/reboot -f 强制重启系统