在开机引导界面按“e”, 找到linux16开头的一行,定位到ro然后修改ro为rw,并添加:init=/sysroot/bin/sh 使用ctrl x进入安全模式。 使用命令:chroot /sysroot/ 切换到根目录 使用 systemctl set-default multi-user.target 进入命令行模式,graphical.target为图形界面模式 转载于:https://www.cnblogs.com/hugebin/p/10843926.html