系统相关
首页 > 系统相关> > centos 7.5关闭图形界面

centos 7.5关闭图形界面

作者:互联网

1、获取默认的target
[root@centos7 ~]# systemctl get-default
graphical.target

2、取消图形界面

[root@centos7 ~]# 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、图形界面启动
[root@centos7 ~]# 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

标签:systemd,target,centos,default,图形界面,system,symlink,etc,7.5
来源: https://blog.51cto.com/13718453/2468380