## 查看当前系统的默认启动方式:
systemctl get-default
## 查看如下文件
cat /etc/inittab
- 可以看到 此文件中提示了如何进行修改默认的启动方式
## 命令行启动方式
multi-user.target: analogous to runlevel 3
## 图形化启动方式
graphical.target: analogous to runlevel 5
- 根据提示 如果要将默认启动方式改为命令行启动,则:
systemctl set-default multi-user.target
- 同理,改为图像化启动方式
systemctl set-default graphical.target