Linux Runlevel
RunLevel因应不同需求,Linux(UNIX)可以分为七种不同激活模式,或七种不同执行等级,一般正常使用的系统多开启为Level 3 或5.Run Level的改变root可以使用init或telinit切换到不同Run。 Levelinit 0 = shutdown -h init 6 = reboot。 /etc/inittab内容解读 /etc/inittab内容
(Just For RedHat Linux)id : 3 : initdefault :si : : sysinit: /etc/rc.d/rc.sysinitl0 : 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 5l6 : 6 : wait: /etc/rc.d/rc 6ud : : once : /sbin/updateca : : ctrlaltdel : /sbin/shutdown -t3 -r nowpf : : powerfail : /sbin/shutdown -f -h +2 "Power Failure; System Shutting Down"pr : 12345 : powerokwait: /sbin/shutdown -c "Power Restored; Shutdown Cancelled"1 : 2345 : respawn : /sbin/mingetty tty12 : 2345 : respawn : /sbin/mingetty tty23 : 2345 : respawn : /sbin/mingetty tty34 : 2345 : respawn : /sbin/mingetty tty45 : 2345 : respawn : /sbin/mingetty tty56 : 2345 : respawn : /sbin/mingetty tty6x : 5 : respawn : /etc/X11/prefdm -nodaemon |
新闻热点
疑难解答