日本免费全黄少妇一区二区三区-高清无码一区二区三区四区-欧美中文字幕日韩在线观看-国产福利诱惑在线网站-国产中文字幕一区在线-亚洲欧美精品日韩一区-久久国产精品国产精品国产-国产精久久久久久一区二区三区-欧美亚洲国产精品久久久久

RedHat 開機起動流程

#;版權(quán)宣告:;1999;Copyright;OLS3;All;rights;reserved.

#;作者:;OLS3;(臥龍小三)
#;本講義僅供臺南縣;87;學年度網(wǎng)路管理進階研習班上課之用.
#;學員可保存一份自用,;供日後網(wǎng)管時參考備查.
#;作者保有一切形式的著作權(quán).
#;欲作其它用途者,;需經(jīng)作者授權(quán)同意.
#;未經(jīng)作者授權(quán)同意之前,;請勿轉(zhuǎn)載刊登.

RedHat;開機起動流程;:

1.;LILO;取得控制權(quán).

PC;起動時,;會讀取開機磁碟第一條;cylinder;的第一個;sector(此即;MBR),;然後它會試著將讀取到的程式碼載入記憶體中并且予以執(zhí)行.;這些程式碼,;就是;LILO.;記不記得,;當初我們安裝時,;曾選擇將;LILO;放入MBR;呢?!

2.;載入;kernel

Red;Hat;的;kernel;放在;/boot;中,;通常檔名類似;vmlinuz-2.0.34-0.6,;vmlinuz-2.2.5-15

3.;kernel;執(zhí)行第一支程式;/sbin/init

init;會根據(jù);/etc/inittab;這個;initialization;table;來決定不同的;run-level;應該如何設(shè)定系統(tǒng).

Red;Hat;的;run-level;有以下;7;層:;(定義在;/etc/inittab;中)

0;---;halt;:;關(guān)機;level;
1;---;Single;user;mode;:;單人模式,;如果你忘記;root;密碼,;這是補救的方式之一.;
2;---;Multiuser,;without;NFS;:;多人使用模式,;但沒有;NFS;功能,;如果安裝時沒有使用網(wǎng)路功能,;那麼;level;3;是一樣的.;
3;---;Full;multiuser;mode;:;這是預定的;run-level;
4;---;unused;:;這個;run-level;目前尚未定義使用;
5;---;X11;:;X;Windows;使用的;level;
6;---;reboot;:;重新開機時使用的;level;
Linux;系統(tǒng)開機時,;最重要的觀念便是這個;run-level;,;run-level;可以說是;Linux;的系統(tǒng)狀態(tài)(system;states;of;Linux),;根據(jù)不同的情況進入不同的系統(tǒng)狀態(tài),;以執(zhí)行不同的初始化動作.

另外一點,;Linux;雖然融合了;System;V;及;BSD;的特色,;但在開機起動的部份,;比較接近;System;V;的作法,;并且這種方式幾乎已成為;Linux;世界的一項標準.;因為它具有容易使用,;功能強大以及富有彈性的特色.;

其目錄檔案結(jié)構(gòu)如下:

/etc/rc.d;中包含:

目錄;script;檔案;
/etc/rc.d/init.d;
/etc/rc.d/rc0.d;
/etc/rc.d/rc1.d;
/etc/rc.d/rc2.d;
/etc/rc.d/rc3.d;
/etc/rc.d/rc4.d;
/etc/rc.d/rc5.d;
/etc/rc.d/rc6.d;
rc;
rc.local;
rc.sysinit;


rc0.d;便是;run-level;0;起動;script;存放的目錄,;rc3.d;是;run-level;3,;其它依此類推

不過,;rc0.d;~;rc6.d;中的;script;并不是各自獨立的,;其實它們都是;symbolic;file,;連結(jié)到;/etc/rc.d/init.d;中的;script.

比如;rc3.d;目錄中的檔案列表如下:

total;0
lrwxrwxrwx;;1;root;;root;;20;May;23;15:56;K15postgresql;->;../init.d/postgresql
lrwxrwxrwx;;1;root;;root;;17;May;23;15:56;K20rusersd;->;../init.d/rusersd
lrwxrwxrwx;;1;root;;root;;15;May;23;15:56;K20rwhod;->;../init.d/rwhod
lrwxrwxrwx;;1;root;;root;;16;May;23;15:56;K55routed;->;../init.d/routed
lrwxrwxrwx;;1;root;;root;;17;May;23;15:56;S01kerneld;->;../init.d/kerneld
lrwxrwxrwx;;1;root;;root;;17;May;23;15:56;S10network;->;../init.d/network
lrwxrwxrwx;;1;root;;root;;15;May;23;15:56;S15nfsfs;->;../init.d/nfsfs
lrwxrwxrwx;;1;root;;root;;16;May;23;15:56;S20random;->;../init.d/random
lrwxrwxrwx;;1;root;;root;;16;May;23;15:56;S30syslog;->;../init.d/syslog
lrwxrwxrwx;;1;root;;root;;13;May;23;15:56;S40atd;->;../init.d/atd
lrwxrwxrwx;;1;root;;root;;15;May;23;15:56;S40crond;->;../init.d/crond
lrwxrwxrwx;;1;root;;root;;17;May;23;15:56;S40portmap;->;../init.d/portmap
lrwxrwxrwx;;1;root;;root;;15;May;23;15:56;S40snmpd;->;../init.d/snmpd
lrwxrwxrwx;;1;root;;root;;16;May;23;15:56;S45pcmcia;->;../init.d/pcmcia
lrwxrwxrwx;;1;root;;root;;14;May;23;15:56;S50inet;->;../init.d/inet
lrwxrwxrwx;;1;root;;root;;15;May;23;15:56;S55named;->;../init.d/named
lrwxrwxrwx;;1;root;;root;;13;May;23;15:56;S60lpd;->;../init.d/lpd
lrwxrwxrwx;;1;root;;root;;18;May;23;15:56;S75keytable;->;../init.d/keytable

推薦閱讀