Think before you speak, read before you think.

CentOS 7 systemd 禁用 gnome 启动

平时自己家里的 CentOS 7 不需要图形界面,所以禁用

查看当前启动模式,发现时界面模式

[root@192 ~]# systemctl get-default 
graphical.target

将界面模式改为多用户无界面模式,重启生效

[root@192 ~]# 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.
[root@192 ~]# systemctl reboot

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *