相关命令 | 说明 |
---|---|
runlevel | 查看系统当前的运行级别 |
systemctl get-default | 查看开机默认的运行级别 |
systemctl set-default multi-user.target | 设置开机默认运行级别为多用户图形命令模式(runlevel 3) |
- 编辑开机运行级别的配置文件:
vim /etc/inittab
- 设置开机默认运行级别为多用户图形命令模式:
systemctl set-default multi-user.target
- 重启即可。
相关命令 | 说明 |
---|---|
runlevel | 查看系统当前的运行级别 |
systemctl get-default | 查看开机默认的运行级别 |
systemctl set-default multi-user.target | 设置开机默认运行级别为多用户图形命令模式(runlevel 3) |
vim /etc/inittab
systemctl set-default multi-user.target