Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Linux Æô¶¯²ÎÊý £¨×ª£©

 Ò»°ãµÄϵͳÊÇÏÈÆô¶¯/sbin/init£¬µ«ÊÇÒ²¿Éͨ¹ýÆô¶¯²ÎÊýÖ¸¶¨init=À´È·¶¨£¬
È磺ÎÒµÄϵͳ¾ÍÊÇÖƶ¨µÄinit=/linuxrc,ÒòΪÎļþϵͳÊDzÉÓÃbusyboxµÄ£¬¶ølinuxrc
Ò²ÊÇÒ»¸öÖ¸ÏòbusyboxµÄÎļþ£¬²»¹ý²»È·ÈÏËüÖ¸Ïò¾ßÌåÄĸöÖ¸Áî¡£²»¹ý¿ÉÄÜÊÇ/sbin/init¡£
init½ø³ÌµÄÖ÷ÒªÈÎÎñÊÇ°´ÕÕinittabÎļþËùÌṩµÄÐÅÏ¢´´½¨½ø³Ì£¬ÓÉÓÚ½øÐÐϵͳ³õʼ
»¯µÄÄÇЩ½ø³Ì¶¼ÓÉinit´´½¨£¬ËùÒÔinit½ø³ÌÒ²³ÆΪϵͳ³õʼ»¯½ø³Ì¡£
    ÈçÎÒµÄinittab£º
::sysinit:/etc/init.d/rcS
::respawn:-/bin/login
::restart:/sbin/init
tty0::askfirst:-/bin/login
::ctrlaltdel:/bin/reboot
::shutdown:/bin/umount -a -r
::shutdown:/sbin/swapoff -a
inittabµÄ¸ñʽÈçÏ£º
id:rstate:action:process
1£®id×Ö¶ÎÊÇ×î¶à4¸ö×Ö·ûµÄ×Ö·û´®£¬ÓÃÀ´Î¨Ò»±êÖ¾±íÏî¡£
2£®rstate(run state)×ֶζ¨Òå¸Ã¼Ç¼Ïî±»µ÷ÓÃʱµÄÔËÐ춱ð£¬rstate¿ÉÒÔÓÉÒ»¸ö»ò¶à¸öÔËÐм¶±ð¹¹³É£¬
Ò²¿ÉÒÔÊÇ¿Õ£¬¿ÕÔò´ú±íÔËÐ춱ð0¡«6¡£µ±ÇëÇóinit¸Ä±äÔËÐ춱ðʱ£¬ÄÇЩrstate×Ö¶ÎÖв»°üÀ¨ÐÂÔËÐм¶
±ðµÄ½ø³Ì½«ÊÕµ½SIGTERM¾¯¸æÐźţ¬²¢ÇÒ×îºó±»É±ËÀ£»Ö»ÓÐa¡¢b¡¢cÆô¶¯µÄÃüÁîÍ⣨a¡¢b¡¢c²»ÊÇÕæÕýµÄÔËÐ춱ð£©
3.action×ֶζ¨ÒåÁ˸ýø³ÌÓ¦¸ÃÔËÐÐÔÚºÎÖÖ״̬Ï£º
    ´úÂë:
    boot        ÔÚϵͳÆô¶¯Ê±ÔËÐУ¬ºöÂÔrunlevel
    bootwait    ÔÚϵͳÆô¶¯Ê±ÔËÐУ¬initµÈ´ý½ø³ÌÍê³É¡£ºöÂÔrunlevel
    ctrlaltdel    µ±Ctrl+Alt+DelÈý¸ö¼üͬʱ°´ÏÂʱÔËÐУ¬°ÑSIGINTÐźŷ¢Ë͸øinit¡£ºöÂÔ    runlevel
    initdefault    ²»ÒªÖ´ÐÐÕâ¸ö½ø³Ì£¬ËüÓÃÓÚÉèÖÃĬÈÏrunlevel
    kbrequest    µ±init´Ó¼üÅÌÖÐÊÕµ½ÐźÅʱÔËÐС£ÕâÀïÒªÇó¼üÅÌ×éºÏ·ûºÏKeyBoardSigral(²Î¼û/usr/share/doc/kbd-*¹ØÓÚ¼üÅÌ×éºÏµÄÎĵµ)
    off        ½ûÖ¹½øÈ룬Òò´Ë¸Ã½ø³Ì²»ÔËÐÐ
    once        ÿһ¸örunlevel¼¶±ðÔËÐÐÒ»´Î
    ondemand    µ±ÏµÍ³Ö¸¶¨Ìض¨µÄÔËÐ춱ðA¡¢B¡¢CʱÔËÐÐ
    powerfail    µ±initÊÕµ½SIGPWRÐźÅʱÔËÐÐ
    p


Ïà¹ØÎĵµ£º

linux ÏÂc++¼°mysql¶Ôʱ¼ä´¦ÀíµÄ³£Óü¼ÇÉ

mysql ½Øȡijһ¸öʱ¼ä(datetimeÀàÐÍ)µÄÈÕÆÚ£º
·½·¨1£ºselect date(row_name) from table_name where row = row1;
·½·¨2£ºselect left(row_name, 10) from table_name where row = row1;
·½·¨3£ºselect cast(row_name as char[10]) from table_name where row = row1;
È¡µÃij¸öÈÕÆÚµÄtime_tÊýÖµ£ºselect unix_times ......

¹¹½¨ARM Linux½»²æ±àÒ빤¾ßÁ´ Ïê½â

  ¹¹½¨ARM Linux½»²æ±àÒ빤¾ßÁ´ Ïê½â
±¾ÕÂѧϰĿ±ê£º
  ¡ñ Á˽⽻²æ±àÒ빤¾ßÁ´
  ¡ñ Àí½â·Ö²½¹¹½¨½»²æ±àÒ빤¾ßÁ´µÄ·½·¨
  ¡ñ ѧ»áʹÓÃCrosstool¹¤¾ß¹¹½¨½»²æ±àÒ빤¾ßÁ´
2.1  ½»²æ±àÒ빤¾ßÁ´½éÉÜ
¶ÁÕß¿ÉÄÜ»áÓÐÒÉÎÊ£¬ÎªÊ²Ã´ÒªÓý»²æ±àÒëÆ÷£¿½»²æ±àÒëͨË׵ؽ²¾ÍÊÇÔÚÒ»ÖÖÆ ......

ÈçºÎÔĶÁlinuxÔ´´úÂë

      Ëæ×ÅlinuxµÄÖð²½ÆÕ¼°£¬ÏÖÔÚÓв»ÉÙÈ˶ÔÓÚLinuxµÄ°²×°¼°ÉèÖÃÒѾ­±È½ÏÊìϤÁË¡£ÓëLinux µÄÅ·¢Õ¹ÏàÊÊÓ¦£¬ÏëÉîÈëÁ˽âLinuxµÄÒ²Ô½À´Ô½¶à¡£¶øÒªÏëÉîÈëÁ˽âLinux£¬¾ÍÐèÒªÔĶÁºÍ·ÖÎölinuxÄں˵ÄÔ´´úÂë¡£
¡¡¡¡LinuxµÄÄÚºËÔ´´úÂë¿ÉÒԴӺܶà;¾¶µÃµ½¡£Ò»°ãÀ´½²£¬ÔÚ°²×°µÄlinuxϵͳÏ£¬/usr/src/linux ......

LinuxÖÐtty pty pts ¸ÅÄîÇø±ð

 »ù±¾¸ÅÄ
1> tty(ÖÕ¶ËÉ豸µÄͳ³Æ):
ttyÒ»´ÊÔ´ÓÚTeletypes£¬»òÕßteletypewriters£¬Ô­À´Ö¸µÄÊǵ紫´ò×Ö»ú£¬ÊÇͨ¹ý´®ÐÐÏßÓôòÓ¡»ú¼üÅÌͨ¹ýÔĶÁºÍ·¢ËÍÐÅÏ¢µÄ¶«Î÷£¬ºóÀ´ÕⶫÎ÷±»¼üÅÌÓëÏÔʾÆ÷È¡´ú£¬ËùÒÔÏÖÔÚ½ÐÖն˱ȽϺÏÊÊ¡£
ÖÕ¶ËÊÇÒ»ÖÖ×Ö·ûÐÍÉ豸£¬ËüÓжàÖÖÀàÐÍ£¬Í¨³£Ê¹ÓÃttyÀ´¼ò³Æ¸÷ÖÖÀàÐ͵ÄÖÕ¶ËÉ豸¡£
2> pt ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ