# inittab is onlyused by upstart for the default runlevel.
#
# ADDING OTHERCONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# Systeminitialization is started by /etc/init/rcS.conf
#
# Individualrunlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Deleteis handled by /etc/init/control-alt-delete.conf
#
# Terminal gettysare handled by /etc/init/tty.conf and /etc/init/serial.conf,
# withconfiguration in /etc/sysconfig/init.
#
# For informationon how to write upstart event handlers, or how
# upstart works,see init(5), init(8), and initctl(8).
#
# Defaultrunlevel. The runlevels used are:
# 0 - halt (Do NOT set initdefault to this)
让init关闭所有进程并终止系统。不可设置
# 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
是将系统初始化为专用的X Window终端,即图形化界面
# 6 - reboot (Do NOT set initdefault to this)
关闭所有运行的进程并重新启动系统。不可设置
#
id:3:initdefault:
这个文件有用的配置只有这一行(其余均为讲解注释),该行内容是runlevel为3,即进入字符终端界面。
网友评论