Things change, roll with the punches.Oh, yeah. Go for it man, jump off the high dive, stare down the barrel of the gun, pee into the wind!

red hat/Fedora Core 7个运行等级

上一篇 / 下一篇  2007-01-05 01:01:14 / 个人分类:Linux

 

4x#R SZG0runlevel 0 = halt/关机51Testing软件测试网g-nji%R0W.] X
runlevel 1 = single user mode = linux single/单用户模式(通常维护用)51Testing软件测试网 z;^X9i%M M&D
runlevel 2 = n/a or user - user defined/用户定义
/a|Op8F5ES0runlevel 3 = text mode with 6 virtual consoles/带有6个虚拟终端的文本模式(服务器常用此模式)51Testing软件测试网8K#i { z4R&F-I`
runlevel 4 = n/a or user - user defined/用户定义51Testing软件测试网'eZ!A aF I
runlevel 5 = graphics mode or X/图形模式或者X-window(桌面用户的最爱)
G$_6p:i9Lmt0runlevel 6 = reboot/重启

El5p| m051Testing软件测试网 }N2URC!X"@:v

快速切换运行等级命令
}7EW4nVfj+@!Y1hn0      init 运行等级号
G5R*cu*}(xr0察看当前运行等级命令
!C/C7[{1l7a0      runlevel
R-i:C+H Xj0

,R*@SW3G)u051Testing软件测试网4iPHl$]OK

修改默认运行等级
O q'v9s@0 打开/etc/inittab文件51Testing软件测试网D2dM [$L
 找到id:5:initdefault
"V/f)i-{f0 将中间的5改成你期望的运行等级号,然后重启即可

Tyxv0U0

xmUQ6pEt8AW0相关文件51Testing软件测试网@#l Lt6DK ow
/etc/rc.d/rc.sysinit- 初始化系统环境的脚本51Testing软件测试网6FI&RBtK8Sc
/etc/inittab- 默认运行等级
~Wth&A?XKI0/etc/rc.d/init.d/- 存放初始化脚本51Testing软件测试网\ SRZ3c
/etc/rc.d/rc*.d/- *取值(0~6),存放相关运行等级的脚本(一般都是软链接)51Testing软件测试网L*h)V*w\k\G2L
                               K(Kill)开头的脚本 - 关闭脚本
y ]jy+cg.K8@:O0                               S(Start)开头的脚本 - 开始脚本51Testing软件测试网Z-? A*[ @;F Dv]
/etc/rc.d/rc.local- 存放用户自定义的初始化后运行的脚本

L-GF |V q }n9G |051Testing软件测试网~8Z&f7Hui-@0f*V MO0~

服务相关程序51Testing软件测试网 \ xX!J N:R)l8b~

(ZZ ?dR6]|[?F0/usr/sbin/ntsysv51Testing软件测试网`%B+c4n&e4Y-s

(q8zRFk)G~3g`C0/usr/sbin/system-config-services(早期的rh版本可能是redhat-config-services)

H~'gk S"IO051Testing软件测试网 X9UA k.E-Tn4n\/U

以上两个是图形化配置系统服务的程序:)

W,ZD1OUneR,d0大小: 138.29 K
尺寸: 400 x 300
浏览: 8 次
点击打开新窗口浏览全图51Testing软件测试网o)?^s a;B

/sbin/chkconfig51Testing软件测试网 ?%PY9ER&Q
用法:    chkconfig --list [name]
|R+T |%V&IG`,B0ut0         chkconfig --add <name>
$vXA0Zc R0         chkconfig --del <name>
hz;{"N leP t0         chkconfig [--level <levels>] <name> <on|off|reset>

kg|*r/M)HfJV0基于命令行的服务配置程序

W$z'kau0

sJe$[1S)Rx-H0/sbin/service

A%?.v'vQ P051Testing软件测试网s8X3C l,CS!}

service < option > | --status-all | [ service_name [ command | --full-restart ] ]

,}]'jfzdU051Testing软件测试网3^` ~"p:JI_

51Testing软件测试网H~^+|mn*GX.S
用来显示,重启服务用的。非常有用

"P"fEz'JU9x3_`O0

TAG: Linux

 

评分:0

我来说两句

日历

« 2024-04-17  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

  • 访问量: 45869
  • 日志数: 42
  • 图片数: 3
  • 文件数: 1
  • 书签数: 13
  • 建立时间: 2007-01-05
  • 更新时间: 2007-03-03

RSS订阅

Open Toolbar