[[email protected] ~]# vi /etc/inittab # inittab is only used by upstart for the default runlevel.## adding other Configuration here will have no effect on your system.## system initialization is started by /etc/init/rcs.conf## individual runlevels are started by /etc/init/rc.conf## ctrl-alt-delete is handled by /etc/init/control-alt-delete.conf## terminal gettys are handled by /etc/ init/tty.conf and /etc/init/serial.conf,# with configuration in /etc/sysconfig/ Init.## for information on how to write upstart event handlers, or how# upstart works, see init (5), init (8), and initctl (8). # # 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) #id: 3:initdefault:
Shut down:
Id:3:initdefault:
Open:
Id:5:initdefault:
After reboot, it will take effect:
[email protected] ~]# reboot
This article from "Liangning _ II Shopkeeper" blog, please be sure to keep this source http://liangning.blog.51cto.com/1331535/1706334
Open and close the CentOS graphical interface