Modify the CentOS startup level

Source: Internet
Author: User
Cd/etcviminittabid: 5: initdefault, you do not need to use startx or xinit to start the graphic interface after logging on in character mode. this is indeed very convenient, but sometimes you still need to start it on the character interface. how can you do this? In fact, you only need to modify

Cd/etc

Vim inittab

Id: 5: initdefault:
 

After the system is installed, the system runs at 5th levels. after the system is started, the system directly enters the graphical interface, instead of starting the graphical interface with startx or xinit after logging on in character mode, this is indeed very convenient, but sometimes it is still necessary to start on the character interface, how to operate? In fact, you only need to modify the centos startup level. You can use the following method to modify the default CentOS startup level: #/Etc/inittab you will see the system-level definition at the beginning:     # Default runlevel. The runlevels used by RHS are:    #   0 - halt (Do NOT set initdefault to this)    #   1 - Single user mode    #   2 - Multiuser, without NFS (The same as 3, if you do not have networking)    #   3 - Full multiuser mode    #   4 - unused    #   5 - X11    #   6 - reboot (Do NOT set initdefault to this)      Commonly used 0 ~ 6 The seven startup levels are: 0 shutdown, 1 single user mode, 2 multi-user mode without network, 3 multi-user with network, that is, the so-called pure character mode 4 is retained, users can customize the 5-user GUI mode. 6. restart the system and define the default startup level of the system: Id: 5: initdefault: Therefore, set the default startup level of the system to 3 and set 5 to 3: D: 3: initdefault: Then restart the machine. (Remember, do not set the default startup level to 0 or 6, so that you cannot enter the system .)) Method: 1. vi/etc/inittab2. find id: x: initdefault:. my system is id: 3: initdefault:, which is started in character mode by default. 3. Change 3 to 5, that is, id: 5: initdefault: 4. reboot startx enters the graph mode in the character mode. init 3 is in the graph mode and enters the character mode. in the vm, centos cannot be accessed. Solution: for reference only: if the local machine accesses the Internet through a route, set the vmwear Nic to a bridge. if the local machine accesses the Internet through a dial, set it to a nat.

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.