Set CentOS not to enable graphical interface

Source: Internet
Author: User
Setting centOS does not enable graphical interfaces. our linux server runs in the IDC for a long time. generally, graphical interfaces are not required and the graphic interface occupies memory. Therefore, we can use simple settings to enable linux to only start the command interface. Here we take cenOS5.5 as an example. ---------------------

Set centOS not to enable graphical interface

Our linux server runs in the data center for a long time. Generally, the graphic interface is not required, and the graphic interface occupies the memory.

Therefore, we can use simple settings to enable linux to only start the command interface. Here we take cenOS5.5 as an example.

Bytes ---------------------------------------------------------------------------------------------

[Root @ localhost ~] #Vi/etc/inittab

#

# Inittab This file describes how the INIT process shocould set up

# The system in a certain run-level.

#

# Author: Miquel van Smoorenburg,

# Modified for RHS Linux by Marc Ewing and Donnie Barnes

#

 

# 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)

#

Id: 5: initdefault:

 

# System initialization.

Si: sysinit:/etc/rc. d/rc. sysinit

 

L0: 0: wait:/etc/rc. d/rc 0

L1: 1: wait:/etc/rc. d/rc 1

L2: 2: wait:/etc/rc. d/rc 2

L3: 3: wait:/etc/rc. d/rc 3

L4: 4: wait:/etc/rc. d/rc 4

L5: 5: wait:/etc/rc. d/rc 5

L6: 6: wait:/etc/rc. d/rc 6

Bytes -----------------------------------------------------------------------------------------

 

Focus on this part

#0-halt (Do NOT set initdefault to this) stop (no initdefault)

#1-Single user mode

#2-Multiuser, without NFS (The same as 3, if you do not have networking) multiple users, no NFS (equivalent to 3, if you do not have a network)

#3-Full multiuser mode Full multi-user mode

#4-unused Idle

#5-X11 graphic interface

#6-reboot (Do NOT set initdefault to this) restart (no initdefault)

Id: 5: initdefault: ---- modify the parameters here

 

Now we modify: id: 3: initdefault to save and exit.

 

[Root @ localhost ~] # Shutdown now restart the system. now the command interface is displayed.

 

[Root @ localhost ~] # Vi/etc/inittab # inittab This file describes how the INIT process shoshould set up # the system in a certain run-level. # Author: Miquel van Smoorenburg, # Modified for RHS Linux by Marc Ewing and Donnie Barnes # 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) # id: 5: initdefault: # System initialization. si: sysinit:/etc/rc. d/rc. sysinit l0: 0: wait:/etc/rc. d/rc 0l1: 1: wait:/etc/rc. d/rc 1l2: 2: wait:/etc/rc. d/rc 2l3: 3: wait:/etc/rc. d/rc 3l4: 4: wait:/etc/rc. d/rc 4l5: 5: wait:/etc/rc. d/rc 5
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.