systemctl get-default
命令行模式:multi-user.target
图形界面模式:graphical.target
systemctl set-default graphical.target
systemctl set-default multi-user.target
reboot