$sudo yum groupinstall "GNOME Desktop" "Graphical Administration Tools"
If you want to automatically enter the graphical interface when the system starts next time, then we need to change the running level of the system and enter the following command to enable the graphical interface.
$sudo ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target
CentOS Tutorial"
The above is the detailed content of What should I do if I can't access the desktop in centos?. For more information, please follow other related articles on the PHP Chinese website!