LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 881|回复: 3

为什么同时存在runlevel 3 和5??

[复制链接]
发表于 2007-1-15 17:56:10 | 显示全部楼层 |阅读模式
进入系统后,在root下运行了 init 3
之后,运行了gdm
再用runlevel命令一看,发现runlevel是5,3,不知何故,遂问之。
发表于 2007-1-15 19:52:37 | 显示全部楼层
这个是man文档的一部分,看看就明白了
Runlevel  reads  the  system  utmp  file  (typically /var/run/utmp) to
       locate the runlevel record, and then prints the previous  and  current
       system  runlevel  on its standard output, separated by a single space.
       If there is no previous system runlevel, the letter N will be  printed
       instead.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-1-16 09:03:07 | 显示全部楼层
知道了,谢谢, 原来5是previous的runlevel。  但是为什么我在runlevel 3 下再运行 init 5就没反应??   难道runlevel 5也运行了吗?
回复 支持 反对

使用道具 举报

发表于 2007-1-16 13:56:27 | 显示全部楼层
#   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)
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表