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

DBAÒªÕÆÎÕµÄLinux ÃüÁָͨÄÏ

¸ß¼¶ Linux ÃüÁָͨÄÏ£¬µÚ 3 ²¿·Ö£º×ÊÔ´¹ÜÀí
×÷ÕߣºArup Nanda
2009 Äê 1 Ô·¢±í
Ôڴ˲¿·ÖÖУ¬Á˽âÓÃÓÚ¼àÊÓÎïÀí×é¼þµÄ¸ß¼¶ Linux ÃüÁî
Linux ϵͳÓÉÈô¸ÉÖ÷ÒªÎïÀí×é¼þ×é³É£¬Èç CPU¡¢ÄÚ´æ¡¢Íø¿¨ºÍ´æ´¢É豸¡£ÒªÓÐЧµØ¹ÜÀí Linux »·¾³£¬ÄúÓ¦¸ÃÄܹ»ÒÔºÏÀíµÄ¾«¶È²âÁ¿ÕâЩ×ÊÔ´µÄ¸÷ÖÖÖ¸±ê — ÿ¸ö×é¼þ´¦Àí¶àÉÙ×ÊÔ´¡¢ÊÇ·ñ´æÔÚÆ¿¾±µÈ¡£
ÔÚ±¾ÏµÁеÄÆäËû²¿·ÖÖУ¬ÄúÒѾ­Ñ§Ï°ÁË´¦Óں꼶±ðµÄÓÃÓÚ²âÁ¿Ö¸±êµÄһЩÃüÁî¡£µ«Ôڴ˲¿·ÖÖУ¬Äú½«Á˽âרÃÅÓÃÓÚ¼àÊÓÎïÀí×é¼þµÄ¸ß¼¶ Linux ÃüÁî¡£¾ßÌå¶øÑÔ£¬Äú½«Á˽âÒÔÏÂÀà±ðµÄÃüÁ
×é¼þ
ÃüÁî
ÄÚ´æ
free¡¢vmstat¡¢mpstat¡¢iostat¡¢sar
CPU
vmstat¡¢mpstat¡¢iostat¡¢sar
I/O
vmstat¡¢mpstat¡¢iostat¡¢sar
½ø³Ì
ipcs¡¢ipcrm
ÕýÈçÄúËù¼û£¬Ä³Ð©ÃüÁî³öÏÖÔÚ¶à¸öÀà±ðÖС£ÕâÊÇÓÉÓÚÕâЩÃüÁî¿ÉÒÔÖ´ÐкܶàÈÎÎñ¡£Ä³Ð©ÃüÁî±È½ÏÊʺÏÓÚijЩ×é¼þ£¬ÀýÈç iostat ÊÊºÏ I/O£¬µ«ÊÇÄúÓ¦¸ÃÁ˽âËüÃǹ¤×÷µÄ²î±ð²¢Ê¹ÓÃÄú¸üÊìϤµÄÃüÁî¡£
ÔÚ¶àÊýÇé¿öÏ£¬µ¥¸öÃüÁî¿ÉÄܶÔÓÚÁ˽âʵ¼Ê·¢ÉúµÄÇé¿öûʲôÓá£Òª»ñÈ¡ËùÐèµÄÐÅÏ¢£¬ÄúÓ¦¸ÃÁ˽â¶à¸öÃüÁî¡£
free
Ò»¸ö³£¼ûµÄÎÊÌâÊÇ“ÎÒµÄÓ¦ÓóÌÐòºÍ¸÷ÖÖ·þÎñÆ÷¡¢Óû§ºÍϵͳ½ø³ÌÕýÔÚʹÓöàÉÙÄڴ棿”»òÕß“ÏÖÔÚÓжàÉÙÄÚ´æ¿ÉÓã¿”Èç¹ûÕýÔÚÔËÐеĽø³ÌʹÓõÄÄÚ´æ´óÓÚ¿ÉÓà RAM£¬ÔòÐèÒª½«ÕâЩ½ø³ÌÒƵ½½»»»Çø¡£Òò´Ë£¬Ò»¸ö²¹³äÎÊÌâÊÇ“ÕýÔÚʹÓöàÉÙ½»»»Çø¿Õ¼ä£¿”
free ÃüÁ»Ø´ðËùÓÐÕâЩÎÊÌâ¡£¶øÇÒ£¬Ò»¸ö·Ç³£ÓÐÓõÄÑ¡Ïî –m ¿ÉÒÔÏÔʾ¿ÉÓÃÄڴ棨ÒÔ MB Ϊµ¥Î»£©£º
# free -m
total used free shared buffers cached
Mem: 1772 1654 117 0 18 618
-/+ buffers/cache: 1017 754
Swap: 1983 1065 918
ÒÔÉÏÊä³öÏÔʾϵͳ¾ßÓÐ 1,772 MB µÄ RAM£¬ÒÑʹÓà 1,654 MB£¬»¹ÓÐ 117 MB ÄÚ´æ¿ÉÓᣵڶþÐÐÏÔʾÔÚÎïÀíÄÚ´æÖлº³åÇøºÍ»º´æ´óСµÄ¸ü¸Ä¡£µÚÈýÐÐÏÔʾ½»»»ÇøÀûÓÃÇé¿ö¡£
ÒªÒÔ KB »ò GB Ϊµ¥Î»ÏÔʾÒÔÉÏÄÚÈÝ£¬Ç뽫 -m Ñ¡Ïî·Ö±ðÌ滻Ϊ -k »ò -g¡£Ê¹Óà –b Ñ¡ÏÒÔ×Ö½ÚΪµ¥Î»¡£
# free -b
total used free shared buffers cached
Mem: 1858129920 1724039168 134090752 0 18640896 643194880
-/+ buffers/cache: 1062203392 795926528
Swap: 2080366592 1116721152 9636454


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨ËÄ£© L2CAP²ã±à³Ì

£¨L2CAPЭÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPЭÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼­Á¬½Ó¿ØÖƺÍÊÊÅäЭÒé (L2CAP) ΪÉϲãЭÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àЭÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãЭÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......

ÈÃCentOS(RedHat)LinuxÖ§³ÖNTFS¶Áд²Ù×÷£­°²×°È«¹ý³Ì

òËÆÓÃ-t ntfs¹ÒÔØÉϵÄÅÌ×ÓÊÇÖ»¶ÁÎļþϵͳ£¬½ñÌì²éÁËÒ»ÏÂntfsÎļþϵͳµÄ¶ÁдÎÊÌ⣺
CentOS 5ĬÈÏÊDz»Ö§³ÖNTFS,ÍøÉÏÕÒÁËЩ£¬¿´ntfs-3gÖ§³Ö¶ÁºÍд£¬×°À´ÊÔÏÂЧ¹ûȷʵ²»´í¡£
1. °²×°Ö®Ç°ÒªÏÈ×°fuse£¬·ñÔòntfs-3g²»ÄÜʹÓá£
ÏÂÔØ£º
¸´ÖÆÄÚÈݵ½¼ôÌù°å
´úÂë:
http://sourceforge.net/project/showfiles.php?group_id=121684 ......

ÊÖ¶¯ÅäÖÃUbuntu LinuxÖ¸¶¨DNS·þÎñÆ÷µØÖ·

       ½éÉÜһϠUbuntu LinuxÖÐÈçºÎÖ¸¶¨DNS·þÎñÆ÷
µÄµØÖ·¡£
¡¡¡¡Ubuntu LinuxʹÓÃÎļþ"/etc/resolv.conf" ÎļþÅäÖÃDNS·þÎñÆ÷µÄµØÖ·£¬¿Éͨ¹ýnameserver ÅäÖÃÏîÉèÖÃDNS·þÎñÆ÷µÄIPµØÖ·£¬×î¶à¿ÉÒÔʹÓÃ3¸öDNS·þÎñÆ÷¡£
¡¡¡¡$ sudo vi /etc/resolv.conf
¡¡¡¡search localdomain
¡¡¡ ......

linuxÏÂopenoffice°²×°

 ÎÒϵÄOpoenoffic°æ±¾ÊÇOOo_3.1.0_LinuxIntel_install_zh-cn.tar.gz¡£
1.½âѹ
    ÃüÁtar   -zxvf    OOo_3.1.0_LinuxIntel_install_zh-cn.tar.gz
    ½âѹºóµÄÎļþ¼ÐÃûΪOOO310_m11_native_packed-4_zh-CN.9399£¬ÀïÃæÓÐÈý¸öÎļþ¼Ðlicenses£¬readmes£ ......

Linuxϳ£Óú¯Êý


getenv£¨È¡µÃ»·¾³±äÁ¿ÄÚÈÝ£©  
Ïà¹Øº¯Êý   putenv£¬setenv£¬unsetenv
±íÍ·Îļþ   #include<stdlib.h>
¶¨Ò庯Êý   char * getenv(const char *name);
º¯Êý˵Ã÷   getenv()ÓÃÀ´È¡µÃ²ÎÊýname»·¾³±äÁ¿µÄÄÚÈÝ¡£²ÎÊýnameΪ»·¾³±äÁ¿µÄÃû³Æ£¬Èç¹û¸Ã±äÁ¿´æÔÚÔò»á·µ»Ø ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ