linux inittabÏê½â
Ò»¡¢Ê²Ã´ÊÇinit
¡¡¡¡initÊÇLinuxϵͳ²Ù×÷Öв»¿ÉȱÉٵijÌÐòÖ®Ò»¡£ ÊÇÒ»¸öÓÉÄÚºËÆô¶¯µÄÓû§¼¶½ø³Ì¡£
¡¡¡¡ÄÚºËÆô¶¯£¨ÒѾ±»ÔØÈëÄڴ棬¿ªÊ¼ÔËÐУ¬²¢Òѳõʼ»¯ËùÓеÄÉ豸Çý¶¯³ÌÐòºÍÊý¾Ý½á¹¹µÈ£©Ö®ºó£¬¾Íͨ¹ýÆô¶¯Ò»¸öÓû§¼¶³ÌÐòinitµÄ·½Ê½À´Æô¶¯ÆäËûÓû§¼¶µÄ½ø³Ì»ò·þÎñ¡£ËùÒÔ£¬initʼÖÕÊǵÚÒ»¸ö½ø³Ì£¨ÆäPIDʼÖÕΪ1£©¡£
¡¡¡¡Äں˻áÔÚ¹ýÈ¥ÔøʹÓùýinitµÄ¼¸¸öµØ·½²éÕÒËü£¬ËüµÄÕýȷλÖ㨶ÔLinuxϵͳÀ´Ëµ£©ÊÇ/sbin/init.Èç¹ûÄÚºËÕÒ²»µ½init£¬Ëü¾Í»áÊÔ×ÅÔËÐÐ/bin/sh£¬Èç¹ûÔËÐÐʧ°Ü£¬ÏµÍ³µÄÆô¶¯Ò²»áʧ°Ü¡£
¶þ¡¢ÔËÐ춱ð
¡¡¡¡ÔËÐм¶¾ÍÊDzÙ×÷ϵͳµ±Ç°ÕýÔÚÔËÐеŦÄܼ¶±ð¡£Õâ¸ö¼¶±ð´Ó1µ½6£¬¾ßÓв»Í¬µÄ¹¦ÄÜ¡£Æ书Äܼ¶±ðÈçÏ£º# 0 - Í£»ú£¨Ç§Íò²»ÄÜ°Ñinitdefault ÉèÖÃΪ0 £©
±¾ÌùÏà¹Ø´úÂ룺
¡¡¡¡# 1 - µ¥Óû§Ä£Ê½# 2 - ¶àÓû§£¬Ã»ÓÐ NFS # 3 - ÍêÈ«¶àÓû§Ä£Ê½£¨±ê×¼µÄÔËÐм¶£©
¡¡¡¡# 4 - ûÓÐÓõ½# 5 - X11 £¨xwindow£©
¡¡¡¡# 6 - ÖØÐÂÆô¶¯ £¨Ç§Íò²»Òª°Ñinitdefault ÉèÖÃΪ6——°Ñ±»ÄãºÚµôµÄlinuxµÄinitdefaultÉèÖÃΪ0»ò6Ò²ËãÊǾܾø·þÎñ¹¥»÷àÞ£¡£©
¡¡¡¡³ý´ËÖ®Í⻹ÓÐABCÈý¸öÔËÐм¶±ð£¬µ«ÔÚRHLinuxÖж¼Ã»ÓÐÒâÒå¡£
¡¡¡¡ÕâЩ¼¶±ðÔÚ/etc/inittab ÎļþÀïÖ¸¶¨¡£Õâ¸öÎļþÊÇinit ³ÌÐòÑ°ÕÒµÄÖ÷ÒªÎļþ£¬×îÏÈÔËÐеķþÎñÊÇ·ÅÔÚ/etc/rc.d Ŀ¼ÏµÄÎļþ¡£ÔÚ´ó¶àÊýµÄLinux ·¢Ðа汾ÖУ¬Æô¶¯½Å±¾¶¼ÊÇλÓÚ /etc/rc.d/init.dÖеġ£ÕâЩ½Å±¾±»ÓÃln ÃüÁîÁ¬½Óµ½ /etc/rc.d/rcn.d Ŀ¼¡££¨ÕâÀïµÄn ¾ÍÊÇÔËÐм¶0-6£©
Èý¡¢ÔËÐ춱ðµÄÅäÖÃ
¡¡¡¡ÔËÐ춱ðµÄÅäÖÃÊÇÔÚ /etc/inittabÐÐÄÚ½øÐеģ¬ÈçÏÂËùʾ£º12 £º 2 £º wait£º /etc/init.d/rc2¸÷×ֶνâÊÍÈçÏ£ºid£ºrunlevels£ºaction£ºprocess id£ºÊÇÒ»¸öÈÎÒâÖ¸¶¨µÄËĸö×Ö·ûÒÔÄÚµÄÐòÁбêºÅ£¬ÔÚ±¾ÎļþÄÚ±ØÐëΨһ£»Ê¹ÓÃÀÏ°æ±¾µÄlibc5£¨µÍÓÚ5.2.18£©»òa.out¿â±àÒë³öÀ´µÄ sysvinitÏÞÖÆΪ2×Ö·û¡£×¢Ò⣺ÏñgettyÖ®ÀàµÄµÇ½½ø³Ì±ØÐëʹid×Ö¶ÎÓëtty±àºÅÒ»Ö£¬Èçtty1ÐèÒªid=1£¬Ðí¶àÀÏ°æ±¾µÄµÇ½½ø³Ì¶¼×ñÑÕâÖÖ¹æÔò¡£
¡¡¡¡runlevels£º±íʾÕâÒ»ÐÐÊÊÓÃÓÚÔËÐÐÄǸö/Щ¼¶±ð£¨ÕâÀïÊÇ2£¬¿ÉÒÔÓжà¸ö£¬±íʾÔÚÏàÓ¦µÄÔËÐм¶¾ùÐèÒªÔËÐУ©£»ÁíÍâsysinit¡¢boot¡¢bootwaitÕâÈý¸ö½ø³Ì»áºöÂÔÕâ¸öÉèÖÃÖµ¡£
¡¡¡¡action£º±íʾ½øÈë¶ÔÓ¦µÄrunlevelsʱ£¬initÓ¦¸ÃÔËÐÐprocess×ֶεÄÃüÁîµÄ·½Ê½£¬³£ÓõÄ×Ö¶ÎÖµ¼°½âÊÍÔÚ¸½Â¼ÄÚ¡£Àý×ÓÖеÄwait±íʾÐèÒªÔËÐÐÕâ¸ö½ø³ÌÒ»´Î²¢µÈ´ýÆä½áÊø¡£
¡¡¡¡process£º¾ßÌåÓ¦¸ÃÖ´ÐеÄÃüÁî¡£Àý×ÓÖеÄ/etc/init.d/rcÃüÁîÆô¶¯ÔËÐ춱ð2ÖÐÓ¦¸ÃÔËÐÐ
Ïà¹ØÎĵµ£º
£¨L2CAPÐÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPÐÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼Á¬½Ó¿ØÖƺÍÊÊÅäÐÒé (L2CAP) ΪÉϲãÐÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àÐÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãÐÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......
Linux Ϊ´´½¨ CD ÌṩÁ˹¦ÄÜÇ¿´óÇÒÁé»îµÄ¹¤¾ß¡£
Äú¿ÉÒÔ´´½¨ÔÚ¼¸ºõÈκÎƽ̨É϶¼¿É¶ÁµÄÅÌ£¬»¹¿ÉÒÔ´´½¨ .iso ÎļþÒÔ¹©ÏÂÔغͷַ¢¡£
ÔÚÈκÎƽ̨ÉÏ´ÓÃüÁîÐÐÉÕ¼ CD ¶¼ÊÇÒ»¼þÁîÈ˷ѽâÇÒ·³ÔêµÄÊÂÇ飬Linux µ±È»Ò²²»ÀýÍâ¡£²»¹ý£¬ÓÉÓÚÔÚ¸÷ƽ̨ÉÏËùÓõ½µÄÃüÁîºÍÊõÓﶼʮ·ÖÏàËÆ£¬Òò´ËѧϰһÏÂÈçºÎÔÚ Linux ÉϿ̼ CD »¹ÊÇÊ®·ÖÓÐÓõġ ......
Title: `º£·çµÄLinux¿ª·¢»·¾³½éÉÜ
tag: linux¿ª·¢ÈëÃÅ, ¿ª·¢»·¾³, samba, indent, SourceInsight, Winux
Îĵµ·¢²¼ÉùÃ÷: ÈκÎÈ˶¼¿ÉÒÔÕë¶Ô±¾Îĵµ×ÔÓÉתÌù£¬¿½±´£¬ÒýÓ㬼°Ð޸ĺóÔÙ·¢²¼£¬¶øÎÞÐè¹ýÎÊÎÒ±¾ÈË£¬Ö»Ï£ÍûÄܹ»ÁôÏÂÊôÓÚÔ×÷ÕßµÄһЩ°æȨÐÅÏ¢£¬Çë×ðÖØÔ×÷ÕßµÄÀͶ¯¡£
`º£·ç = ......
ϵͳÊÕµ½Óʼþ¶¼»á±£´æÔÚ“/var/spool/mail/[linuxÓû§Ãû]”ÎļþÖС£
ÔÚlinuxÖÐÊäÈëmail£¬¾Í½øÐÐÁËÊÕ¼þÏ䣬²¢ÏÔʾ¶þÊ®·âÓʼþÁÐ±í¡£
´ËʱÃüÁîÌáʾ·ûΪ"&"
unread ±ê¼ÇΪδ¶ÁÓʼþ
h|headers ÏÔʾµ±Ç°µÄÓʼþÁбí
l|list ÏÔʾµ±Ç°Ö§³ÖµÄÃüÁîÁбí
?|help ÏÔʾ¶à¸ö²é¿´ÓʼþÁбíµÄÃüÁî²ÎÊýÓ÷¨
d ɾ³ýµ±Ç°ÓÊ ......
New things to learn about Linux Scheduler):
1. Rotating Staircase Deadline cpu scheduler policy
2. CFS (Completely Fair Scheduler)
3. BFS (Brain Fuck Scheduler)
http://lwn.net/Articles/
http://kerneltrap.org/
......