標籤:alt use roo 遠程 文字 form 運行層級 表示 style
1,linux 啟動層級
Linux系統有7個運行層級(runlevel)
運行層級0:系統停機狀態,系統預設運行層級不能設為0,否則不能正常啟動
運行層級1:單使用者工作狀態,root許可權,用於系統維護,禁止遠程登陸
運行層級2:多使用者狀態(沒有NFS)
運行層級3:完全的多使用者狀態(有NFS),登陸後進入控制台命令列模式
運行層級4:系統未使用,保留
運行層級5:X11控制台,登陸後進入圖形GUI模式
運行層級6:系統正常關閉並重啟,預設運行層級不能設為6,否則不能正常啟動
運行層級的原理:
1。在目錄/etc/rc.d/init.d下有許多伺服器指令碼程式,一般稱為服務(service)
[[email protected] init.d]# more /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:
其中 id:3:initdefault: 表示從文字介面啟動,id:5:initdefault: 表示從圖形介面啟動
linux 常用命令