Due to the use of the virtual machine to run Centos 6, computer Compare card, so need to close the graphical interface
First you need to cut to the root user,
[email protected] ~]# su
Password//Enter root password
1. Turn off the graphical interface:
[[Email protected] ~]# init 3//Close graphical interface (Xserver service will also be turned off)
2. Turn on the graphical interface:
[[Email protected] ~]# init 5 or
[[email protected] ~]# startx//Enter the first graphical interface (if there are multiple)
3. When booting, the default does not enter the X Window:
[Email protected] ~]# Vim/etc/inittab
Find Id:5:initdefault:
Change to Id:3:initdefault:
Reboot is OK.
This article is from the "Good Day" blog, please make sure to keep this source http://tianhaoblog.blog.51cto.com/6467511/1680698
Open and close the CentOS graphical interface