;../init.d/sendmail lrwxrwxrwx;;1;root;;root;;13;May;23;15:56;S85gpm;->;../init.d/gpm lrwxrwxrwx;;1;root;;root;;15;May;23;15:56;S85httpd;->;../i。RedHat 開機(jī)起動流程( 二 )。" />

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

RedHat 開機(jī)起動流程( 二 )


lrwxrwxrwx;;1;root;;root;;18;May;23;15:56;S80sendmail;->;../init.d/sendmail
lrwxrwxrwx;;1;root;;root;;13;May;23;15:56;S85gpm;->;../init.d/gpm
lrwxrwxrwx;;1;root;;root;;15;May;23;15:56;S85httpd;->;../init.d/httpd
lrwxrwxrwx;;1;root;;root;;15;May;23;15:56;S85sound;->;../init.d/sound
lrwxrwxrwx;;1;root;;root;;13;May;23;15:56;S91smb;->;../init.d/smb
lrwxrwxrwx;;1;root;;root;;11;May;23;15:48;S99local;->;../rc.local

各位可以發(fā)現(xiàn):;這些;script;檔不是以;S;開頭,;就是以;K;開頭,;其後再接上二位數(shù)字,;并且皆連結(jié)到;init.d;目錄中的相關(guān);scripts;檔.

以;S;開頭的,;表示;Start;起動之意,;而;K;開頭的,;則是;Kill;殺除之意.

4.;init;執(zhí)行第一支;script;:;/etc/rc.d/rc.sysinit

rc.sysinit;會設(shè)定許多系統(tǒng)變數(shù),;如:

設(shè)定;PATH;
設(shè)定網(wǎng)路:;讀取;/etc/sysconfig/network,;以設(shè)定;NETWORKING,;FORWARD_IPV4,;HOSTNAME,;DOMAINNAME,;GATEWARY,;GATEWAYDEV(eth0);
設(shè)定;NIS;domain;name;
并且執(zhí)行;run-level;啟動之前所需的許多準(zhǔn)備動作,;如:

起動;swapping;
checking;root;filesystems;:;檢查;root;檔案系統(tǒng);
檢查系統(tǒng)參數(shù);(/proc),;設(shè)定;PNP;
清除;/etc/mtab;
mount;root;及;/proc;檔案系統(tǒng);
決定是否使用模組,;載入模組;
檢查檔案系統(tǒng);(使用;fsck);
掛上其它檔案系統(tǒng);
設(shè)定;console;字型;
打開;quota;
清除不必要的檔案,;如;lock,;pid;
設(shè)定;clock;
serial;port;初始化;
將開機(jī)訊息經(jīng)由;dmesg;放入;/var/log/dmesg;中;


5.;init;執(zhí)行預(yù)設(shè)的;run-level;目錄中所有的;scripts

正常情況下就是;rc3.d,;因為;/etc/inittab;中有一行設(shè)定是:;id:3:initdefault:;表示預(yù)設(shè)要執(zhí)行的;run-level;是;level;3.;因此,;剛剛上面各位看到的;rc3.d;中的;Sxx;及;Kxx;都會被執(zhí)行.

6.;最後;init;執(zhí)行;/etc/rc.d/rc.local;這支;script.

rc.local;會在各;run-level;的;script;執(zhí)行完之後再執(zhí)行.;您可以將自己想在開機(jī)時處理的動作加在這個;script;之中.

7.;init;執(zhí)行完之後,;接著執(zhí)行;/bin/login;程式

login;程式會提示使用者需輸入帳號及密碼,;接著編碼并確認(rèn)密碼的正確性,;若二者相合,;則為使用者進(jìn)行初始化環(huán)境,;并將控制權(quán)交給;shell.

8.;shell;

假設(shè)預(yù)設(shè)的;shell;是;bash,;則;bash;會先尋找;/etc/profile,;執(zhí)行其中的指令,;然後搜尋使用者目錄中,;是否有;.bash_profile,;.bash_login,;或;.profile,;執(zhí)行其中一個,;接著命令提示符號;$;便出現(xiàn)在螢?zāi)簧?;等待您輸入命令.

至此,;完成了整個開機(jī)的流程.

推薦閱讀