The default boot mode for the CentOS modification system is the command-number interface

Source: Internet
Author: User

CentOS after installing the desktop, the graphical interface is set to the default mode, to the PC memory pressure, so you want to modify the system's default boot mode for the command interface, and do not start the graphical interface. Here's how:

1. Log in to the system as root, or switch to Super user mode with SU;

2. Modify the/etc/inittab file:

Vi/etc/inittab

The last sentence:

Id:5:initdefault:

Modified to:

Id:3:initdefault:

Save the exit and restart the system.

3. Reasons and Explanations:

Linux has 7 levels of operation: as shown below

# Default runlevel. The runlevels used 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)    *重启系统。where level 3 default X window does not start, Level 5 is started by default.

/etc/inittab is the configuration file that the INIT initialization program uses when Inittab initializes the file system for Linux. This file is responsible for setting where the INIT initialization program initialization script is, and the commands to run at each run level initialization; Power on, shutdown, restart the corresponding command, each run level log on the command run.

Id:runlevels:action:process Some of these parts can be empty.

The default boot mode for the CentOS modification system is the command-number 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.