运行环境 | centos 7.0

systemctl get-default 查看当前的模式

1
2
[root@master ~]# systemctl get-default 
graphical.target

systemctl set-default multi-user.target 设置默认进入 命令行模式

1
2
3
[root@master ~]# systemctl set-default multi-user.target 
Removed symlink /etc/systemd/system/default.target.
Created symlink from /etc/systemd/system/default.target to /usr/lib/systemd/system/multi-user.target.

本文原创–支持原创

联系我--strivedeer@163.com