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

LinuxÄں˱àÒë

LinuxÄں˱àÒë´óÖ·ÖΪÒÔϲ½Öè
        1. ÅäÖá¢2.±àÒë¡¢3.°²×°Ä£¿é¡¢4.°²×°ÄÚºË
1.ÅäÖãº
           ÓÃmake configÃüÁÔÚLinuxÔ´Âë½âѹĿ¼ÏÂÉú³ÉÄÚºËÅäÖÃÎļþconfigµÈ
    ¿ÉÓÃÆäËüÃüÁî´úÌæÓÐ(ËüÃDZÈmake config¸üÈËÐÔ»¯)
        make menuconfig(ÐèÒªncurser¿âÖ§³Ö)          make xconfig(ÐèÒªqt3Ö§³Ö)
        make gconfig(ÐèÒªgtk2¿âÖ§³Ö)                     make defconfig(ʹÓÃĬÈÏÅäÖÃ)
        make oldconfig(ÓþɵÄÅäÖÃ)
2.±àÒë:
         ÓÃmakeÃüÁËü»áÉú³ÉÄÚºË(ÔÚarch/x86/bootϵÄbzImage)ºÍÄ£¿é
3.°²×°Ä£¿é:
         ÓÃmake modules_install Ëü»á°ÑÄ£¿é°²×°ÔÚ/lib/modulesÖÐ
4.°²×°ÄÚºË:
        ÓÃmake install £¬Ëü»á°ÑbzImage¿¼µ½/bootϲ¢¸ÄÃûΪvmlinuz-x.y.z
                                  °ÑSystem.map¿¼µ½/bootϲ¢¸ÄÃûΪSystem.map-x.y.z
                                  Éú³Éinitrd-x.y.z
                                  ÔÚÒýµ¼¼ÓÔØÖÐÌí¼Ó¸ÃÄں˵ÄÆô¶¯Ïî


Ïà¹ØÎĵµ£º

linux ulimit ½²½â

1,˵Ã÷:
ulimitÓÃÓÚshellÆô¶¯½ø³ÌËùÕ¼ÓõÄ×ÊÔ´.
2,Àà±ð:
shellÄÚ½¨ÃüÁî
3,Óï·¨¸ñʽ:
ulimit [-acdfHlmnpsStvw] [size]
4,²ÎÊý½éÉÜ:
-H ÉèÖÃÓ²¼þ×ÊÔ´ÏÞÖÆ.
-S ÉèÖÃÈí¼þ×ÊÔ´ÏÞÖÆ.
-a ÏÔʾµ±Ç°ËùÓеÄ×ÊÔ´ÏÞÖÆ.
-c size:ÉèÖÃcoreÎļþµÄ×î´óÖµ.µ¥Î»:blocks
-d size:ÉèÖÃÊý¾Ý¶ÎµÄ×î´óÖµ.µ¥Î»:kbytes
-f size:ÉèÖô´½¨ ......

LinuxÏÂʹÓÃQt±à³ÌÖÐÎÄÂÒÂëµÄ½â¾ö


ÔÚQTÖпÉÒÔÖ±½ÓʹÓÃQTextCodecÀ´×ª»»×Ö·û´®µÄ±àÂë¡£
ÀýÈ磬ÎÒÃÇÏëÔÚ³ÌÐòÖÐʹÓÃÖÐÎÄ£¬ÀàËÆtr£¨“飬ÄãºÃÂ𣿔£©¡£ÎÒÃÇÒªÔÚmainº¯ÊýÖÐÔö¼ÓÒÔϼ¸ÌõÓï¾ä£¬ÖØÐÂÉèÖÃÒ»ÏÂĬÈϵıàÂëÆ÷¡£
Ïȵ÷ÓÃÏÂÃæÁ½¸öº¯ÊýÖ®Ò»
QTextCodec *codec=QTextCodec::codecForName(”gbk”);
QTextCodec *codec=QTextCodec ......

Linux Socketѧϰ±Ê¼Ç£¨2£© SocketµÄ½éÉÜ

Socket ¾ÍÊÇÌ×½Ó×Ö¡£
Socket ¿ÉÒԺͱ¾µØĿ¼°ó¶¨£¬Ò²¿ÉÒÔºÍÒ»¸öIPµØÖ·°ó¶¨¡£
int socketpair(sa_family, socket_type, protocal,  int sz[2]);
sa_family: AF_LOCAL( ºÍ AF_UNIXÒ»Ñù) ±íʾ±¾µØµÄsocket Á¬½Ó
                 A ......

Linux³£ÓÃÃûÁî 1Îļþ²Ù×÷ÃüÁî

1. ls£ºÁгöÎļþÁбí
       ¸ñʽ£º ls  option£¬option¿ÉÒÔÊÇ£º -a ÁгöÒþ²ØÎļþ£¬-l ÁгöÎļþÏêϸÐÅÏ¢
2. pwd£º²é¿´µ±Ç°Ä¿Â¼
3. mkdir£º ´´½¨Ä¿Â¼
4. touch£º ´´½¨Îļþ
5. cd£º Çл»Ä¿Â¼
6. cp£º ¿½±´Îļþ/Ŀ¼
      ¸ñʽ£º cp  srcfile desfi ......

LinuxÖÐRouteÃüÁî

ÔÚÅäÖÃÍøÂçʱ£¬ÒªÎª»úÆ÷Ö¸¶¨½ÓÊÕÊý¾Ý°üʱ¸Ã°üÒª¾­¹ýµÄ·¾¶¡£ÔÚLinuxϵͳÖУ¬Ìṩһ¸öÃüÁîroute£¬Õâ¸öÃüÁî¿ÉÒÔΪifconfigÃüÁîÅäÖõÄÍø¿¨ÉèÖþ²Ì¬Â·ÓÉ¡£ÕâÖÖÉèÖù¤×÷ͨ³£ÔÚ/etc/rc.d/rc.inet1ÖÐÒýÈ룬ÔÚϵͳÒýµ¼Ê±½øÐС£
¡¡¡¡ÎÒÃÇͨ¹ý¼¸¸öÀý×ÓÀ´ËµÃ÷ÈçºÎʹÓÃrouteÃüÁî:
¡¡¡¡¡¡¡¡routeadd-net127.0.0.0
¡¡¡¡Õâ¸öÃüÁÏòÂ·Ó ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ