[root@localhost ~]# cat /etc/redhat-release
CentOS Linux release 7.1.1503 (Core)
[root@localhost ~]# uname -a
Linux localhost.localdomain 3.10.0-229.el7.x86_64 #1 SMP Fri Mar 6 11:36:42 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost ~]# ll /lib/systemd/system/runlevel*.target
lrwxrwxrwx. 1 root root 15 Nov 8 02:38 /lib/systemd/system/runlevel0.target -> poweroff.target
lrwxrwxrwx. 1 root root 13 Nov 8 02:38 /lib/systemd/system/runlevel1.target -> rescue.target
lrwxrwxrwx. 1 root root 17 Nov 8 02:38 /lib/systemd/system/runlevel2.target -> multi-user.target
lrwxrwxrwx. 1 root root 17 Nov 8 02:38 /lib/systemd/system/runlevel3.target -> multi-user.target
lrwxrwxrwx. 1 root root 17 Nov 8 02:38 /lib/systemd/system/runlevel4.target -> multi-user.target
lrwxrwxrwx. 1 root root 16 Nov 8 02:38 /lib/systemd/system/runlevel5.target -> graphical.target
lrwxrwxrwx. 1 root root 13 Nov 8 02:38 /lib/systemd/system/runlevel6.target -> reboot.target
[root@localhost ~]# ll /etc/systemd/system/default.target #默认运行级别
lrwxrwxrwx. 1 root root 37 Nov 8 02:42 /etc/systemd/system/default.target -> /lib/systemd/system/multi-user.target
[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 ~]# ll /etc/systemd/system/default.target
lrwxrwxrwx. 1 root root 40 Nov 21 04:42 /etc/systemd/system/default.target -> /usr/lib/systemd/system/graphical.target
[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'