centos7启动模式level设置

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 当前target
#   如果是图形界面(原来的level 5)则显示:graphical.target
#   命令行界面(level 3),则显示: multi-user.target

systemctl get-default



# 设置为 level 3
systemctl set-default multi-user.target

# 设置为 level 3
systemctl set-default graphical.target



# 列出所有可用的target
systemctl list-units --type=target