centos 7.5關閉圖形界面

一、獲取默認的target
[root@centos7 ~]# systemctl get-default
graphical.targetcentos

二、取消圖形界面ide

[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.centos7

三、圖形界面啓動
[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.get

四、設置target 以後重啓機器
reboot it

相關文章
相關標籤/搜索