Home >Operation and Maintenance >CentOS >How to solve the problem that centos cannot enter the graphical interface
centos can enter the command line interface, but cannot enter the graphical interface. Solution:
1. Press "e" on the boot interface,
2. Find the line starting with linux16, locate ro and change ro to rw, and add: init=/sysroot/bin/sh
3. Use ctrl x to enter safe mode.
4. Use the command:
chroot /sysroot/
Switch to the root directory
5. Use
systemctl set-default multi-user.target
to enter the command line mode
systemctl set-default graphical.target
Enter graphical interface mode
Recommended related tutorials: centos tutorial
The above is the detailed content of How to solve the problem that centos cannot enter the graphical interface. For more information, please follow other related articles on the PHP Chinese website!