systemctl set-default multi-user.target
ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
如果想改回来用图形界面用
ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target
systemctl set-default multi-user.target 开机进入命令行界面
systemctl set-default graphial.target 开机进入图像界面
修改开机默认运行级别命令
systemctl set-default multi-user.target或graphical.target
查看开机默认运行级别:
systemctl get-default
修改默认运行级别为图形方式:
systemctl set-default graphical.target