Disable and enable the CentOS graphical interface

Source: Internet
Author: User
Because Centos6 runs on a virtual machine and the computer is relatively slow, you must first switch the GUI off to the root user. [root @ bogon ~] # Supassword // enter root password 1 to disable the graphic interface: [root @ bogon ~] # Init3 // Close the graphical interface (XServer service is also

Because Centos 6 runs on a virtual machine and the computer is relatively slow, you need to disable the graphic interface.

First, switch to the root user,

[Root @ bogon ~] # Su

Password // enter the root password

 

1. disable the graphic interface:

[Root @ bogon ~] # Init 3 // Close the graphical interface (the XServer service will also be closed)

 

2. enable the graphic interface:

[Root @ bogon ~] # Init 5 or

[Root @ bogon ~] # Startx // enter the first graphic interface (if there are multiple)

 

3. the X Window is not entered by default when the instance is started:

[Root @ bogon ~] # Vim/etc/inittab

Find id: 5: initdefault:

Changed to id: 3: initdefault:

Restart.

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.