CentOS start does not display a graphical interface directly into the command line

I am using the CentOS 6.3

boot into the graphical interface or the command line to enter the inittab file depends on the configuration. This file is located in the etc directory.

# vi /etc/inittab

Locate the following statement:

# Default runlevel. The runlevels used by RHS are: 
# 1 – Single user mode           –单用户模式
# 2 – Multiuser, without NFS (The same as 3, if you do not havenetworking)           –多用户模式,不支持NFS
# 3 – Full multiuser mode          –多用户模式     
# 4 – unused          –没有使用 
# 5 – X11          –图形界面方式 
# 6 – reboot (Do NOT set initdefault to this) –重新启动

id: 5: initdefault: - The default run level is 5, as long as the change here id: 3: initdefault: to 


another method in text mode if you want to start the graphical interface, you can use the following:

# startx



Reproduced in: https: //my.oschina.net/zhouz/blog/213109

Guess you like

Origin blog.csdn.net/weixin_33670786/article/details/91728678