Open and close the CentOS graphical interface

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.