启动的配置文件/etc/inittab,修改完配置文件以后 init q立即生效
# 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)
一般情况下,0,4,6三种状态不选择
id:5:initdefault: #默认的启动level是5,图形化操作界面
[root@localhost ~]# init 5 #改变当前的级别
[root@localhost ~]# runlevel
3 5 #当前级别
/etc/rc.d/目录下面是系统运行的几个级别 进入每个级别可看到相应的服务【注:K开头是关闭 S开头是开启】
原文:http://www.cnblogs.com/yimiao/p/3903056.html