Home  >  Article  >  Operation and Maintenance  >  How to solve the problem that centos cannot enter the graphical interface

How to solve the problem that centos cannot enter the graphical interface

王林
王林Original
2020-04-03 11:48:026584browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn