Home  >  Article  >  Operation and Maintenance  >  What should I do if I can't enter the CentOS7 graphical interface?

What should I do if I can't enter the CentOS7 graphical interface?

angryTom
angryTomOriginal
2020-03-20 11:04:0515427browse

What should I do if I can't enter the CentOS7 graphical interface?

What should I do if I can’t enter the CentOS7 graphical interface?

The solution is as follows:

1. Execute systemctl get-default to obtain Current default target

2. Execute systemctl set-default graphical.target

What should I do if I cant enter the CentOS7 graphical interface?

## (recommended learning:

Linux video tutorial)

3. multi-user.target: Set the current target. Optional values ​​​​are: graphical.target, multi-user.target Enter the graphical interface

multi_user.target: Do not enter the graphics when booting Multi-user mode of the interface.

4. Next, reboot.

After restarting, I found that I still did not enter the graphical interface.

5. Now log in as root user

Enter: systemctl get-default

What should I do if I cant enter the CentOS7 graphical interface?

You will find that it has become graphical.target

6. Run: startx to get it done.

This article comes from the PHP Chinese website,

CentOS usage tutorial column, please pay attention to this column for more related tutorials!

The above is the detailed content of What should I do if I can't enter the CentOS7 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