It is more convenient to change the startup mode of the centos7 system. You can switch by executing the following command:
Check the current system startup method:
systemctl get-default
Set the desktop to start (provided that your desktop is installed):
systemctl set-default graphical.target
Set the command line form to start: