一、设置命令行级别方法
[root@localhost ~]# systemctl set-default multi-user.target
rm ‘/etc/systemd/system/default.target‘
ln -s ‘/usr/lib/systemd/system/multi-user.target‘ ‘/etc/systemd/system/default.target‘
[root@localhost ~]#shutdown -r now
二、设置窗口级别方法:
[root@localhost ~]# systemctl set-default graphical.target
rm ‘/etc/systemd/system/default.target‘
ln -s ‘/usr/lib/systemd/system/graphical.target‘ ‘/etc/systemd/system/default.target‘
[root@localhost ~]#shutdown -r now
原文地址:http://dreamdragon.blog.51cto.com/6156273/1675890