First, the need to restart to take effect
1. Command Mode
systemctl SET-default multi-user.target
2. Graphics mode
systemctl set-default graphical.target
Second, immediately switch
1. Command Mode
Using the graphical interface ctrl + alt + F2 to switch to the interface dos
vm Invalid use ctrl + alt + Fn + F2
2. Graphics Mode
init5 (vm will get stuck, and ctrl + alt + Fn + F2 invalid looking for new ways)