toxic

备忘录

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

ubuntu10.04的默认运行级别设置文件是/etc/init/rc-sysinit.conf

在该文件中

# Default runlevel, this may be overriden on the kernel command-line
# or by faking an old /etc/inittab entry
env DEFAULT_RUNLEVEL=2     #本行就是设置默认运行级别为2。

ubuntu10.04server默认的运行级别为2。

ubuntu的不同版本的设置文件不同。与centos的相同运行级别的含义也有区别。

在centos5.x中默认运行级别设置文件是/etc/inittab

在该文件中
# 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)
#
id:3:initdefault:  #本行设置默认运行级别为3

posted on 2012-10-12 17:34  toxic  阅读(825)  评论(0)    收藏  举报