centos 7.5关闭图形界面
1、获取默认的target
[ ~]# systemctl get-default
graphical.target
[ ~]# systemctl get-default
graphical.target
2、取消图形界面
[ ~]# 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.
3、图形界面启动
[ ~]# systemctl set-default graphical.target
Removed symlink /etc/systemd/system/default.target.
Created symlink from /etc/systemd/system/default.target to /usr/lib/systemd/system/graphical.target.
4、设置target 之后重启机器
reboot
相关推荐
wishli 2020-05-28
dayi 2020-04-29
manimnchn 2020-04-25
summerinsist 2020-04-20
rareli 2020-03-04
SoarFly00 2020-02-20
jocleyn 2020-02-03
服务器端攻城师 2020-02-01
bluecarrot 2020-01-18
rareli 2020-01-13
xinlugang 2020-01-09
rareli 2020-01-07
zhangyan00 2020-01-05
rareli 2020-01-05
疯狂老司机 2019-12-27
chengwei0 2013-09-11
81971834 2015-04-21