环境:centos7 首先查看系统当前的运行级别 systemctl get-default 然后设置开机进入命令行模式 systemctl set-default multi-user.target 最后重启系统即可。