Run Level
/etc/rc.d/rc.sysinit
/etc/sysctl.conf
/etc/rc.d/rcX.d/*
rcX.d/*目錄
Sxx表示執行
Kxx表示不執行
數字小先執行
請注意S99 => rc.local 最後一個執行程序
自定的scripts可以寫入rc.local, 開機就會自動執行
[root@server118 rc3.d]# ll
total 264
lrwxrwxrwx 1 root root 24 Jul 18 22:05 K02avahi-dnsconfd -> ../init.d/avahi-dnsconfd
lrwxrwxrwx 1 root root 16 Jul 18 22:05 K02dhcdbd -> ../init.d/dhcdbd
lrwxrwxrwx 1 root root 24 Jul 18 22:10 K02NetworkManager -> ../init.d/NetworkManager
lrwxrwxrwx 1 root root 34 Jul 18 22:10 K02NetworkManagerDispatcher -> ../init.d/NetworkManagerDispatcher
lrwxrwxrwx 1 root root 16 Jul 18 22:09 K05conman -> ../init.d/conman
...............................
lrwxrwxrwx 1 root root 14 Jul 18 22:09 K89pand -> ../init.d/pand
lrwxrwxrwx 1 root root 15 Jul 18 22:04 K89rdisc -> ../init.d/rdisc
lrwxrwxrwx 1 root root 25 Jul 18 22:09 K99readahead_later -> ../init.d/readahead_later
lrwxrwxrwx 1 root root 23 Jul 18 22:09 S00microcode_ctl -> ../init.d/microcode_ctl
lrwxrwxrwx 1 root root 22 Jul 18 22:07 S02lvm2-monitor -> ../init.d/lvm2-monitor
lrwxrwxrwx 1 root root 25 Jul 18 22:09 S04readahead_early -> ../init.d/readahead_early
.........................
lrwxrwxrwx 1 root root 19 Jul 18 22:09 S98haldaemon -> ../init.d/haldaemon
lrwxrwxrwx 1 root root 19 Jul 18 22:09 S99firstboot -> ../init.d/firstboot
lrwxrwxrwx 1 root root 11 Jul 18 22:05 S99local -> ../rc.local
lrwxrwxrwx 1 root root 16 Jul 18 22:10 S99smartd -> ../init.d/smartd
Controlling Service
1. #system-config-services (圖形介面)
2. #ntsysv(文字介面)
可以控制service是否在開機要啟動
3. service httpd [start|stop|restart|status]
手動啟動,停止, 重新啟動, 狀態
4. chkconfig httpd [on|off]
以命令的方式決定開機時是否啟動
5. chkconfig --list [service-name]
[root@server1 ~]# chkconfig --list xinetd
xinetd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
列出所有執行服務狀態, 不指定服務列出全部服務的狀態
Previous post in this category: [雜記]RHCE筆記整理-RH133-Unit2(1)
Next post in this category: [雜記]RHCE筆記整理-RH133-Unit2(3)
[雜記]RHCE筆記整理-RH133-Unit2(3) - 2009
[雜記]RHCE筆記整理-RH133-Unit2(1) - 2009
【轉貼】駭客都是被逼出來的 - 2007
學習(2)
[雜記]RHCE筆記整理-考試綱要(2)
Recommend to Front page
Comment Permissions: Only members may comment. If you are not a PIXNET member, click here to sign up.