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

linuxµÄfreeÃüÁîÖУ¬cachedºÍbuffersµÄÇø±ð

linuxµÄfreeÃüÁîÖУ¬cachedºÍbuffersµÄÇø±ð
Free
¡¡¡¡free ÃüÁîÏà¶ÔÓÚtop ÌṩÁ˸ü¼ò½àµÄ²é¿´ÏµÍ³ÄÚ´æʹÓÃÇé¿ö£º
¡¡¡¡$ free
¡¡¡¡total used free shared buffers cachedMem: 255268 238332 16936 0 85540 126384-/+ buffers/cache: 26408 228860Swap: 265000 0 265000
¡¡¡¡Mem£º±íʾÎïÀíÄÚ´æͳ¼Æ
¡¡¡¡-/+ buffers/cached£º±íʾÎïÀíÄÚ´æµÄ»º´æͳ¼Æ
¡¡¡¡Swap£º±íʾӲÅÌÉϽ»»»·ÖÇøµÄʹÓÃÇé¿ö£¬ÕâÀïÎÒÃDz»È¥¹ØÐÄ¡£
¡¡¡¡ÏµÍ³µÄ×ÜÎïÀíÄڴ棺255268Kb£¨256M£©£¬µ«ÏµÍ³µ±Ç°ÕæÕý¿ÉÓõÄÄÚ´æb²¢²»ÊǵÚÒ»ÐÐfree ±ê¼ÇµÄ 16936Kb£¬Ëü½ö´ú±íδ±»·ÖÅäµÄÄÚ´æ¡£
¡¡¡¡ÎÒÃÇʹÓÃtotal1¡¢used1¡¢free1¡¢used2¡¢free2 µÈÃû³ÆÀ´´ú±íÉÏÃæͳ¼ÆÊý¾ÝµÄ¸÷Öµ£¬1¡¢2 ·Ö±ð´ú±íµÚÒ»Ðк͵ڶþÐеÄÊý¾Ý¡£
¡¡¡¡total1£º±íʾÎïÀíÄÚ´æ×ÜÁ¿¡£
¡¡¡¡used1£º±íʾ×ܼƷÖÅä¸ø»º´æ£¨°üº¬buffers Óëcache £©Ê¹ÓõÄÊýÁ¿£¬µ«ÆäÖпÉÄܲ¿·Ö»º´æ²¢Î´Êµ¼ÊʹÓá£
¡¡¡¡free1£ºÎ´±»·ÖÅäµÄÄÚ´æ¡£
¡¡¡¡shared1£º¹²ÏíÄڴ棬һ°ãϵͳ²»»áÓõ½£¬ÕâÀïÒ²²»ÌÖÂÛ¡£
¡¡¡¡buffers1£ºÏµÍ³·ÖÅ䵫δ±»Ê¹ÓõÄbuffers ÊýÁ¿¡£
¡¡¡¡cached1£ºÏµÍ³·ÖÅ䵫δ±»Ê¹ÓõÄcache ÊýÁ¿¡£buffer Óëcache µÄÇø±ð¼ûºóÃæ¡£
¡¡¡¡used2£ºÊµ¼ÊʹÓõÄbuffers Óëcache ×ÜÁ¿£¬Ò²ÊÇʵ¼ÊʹÓõÄÄÚ´æ×ÜÁ¿¡£
¡¡¡¡free2£ºÎ´±»Ê¹ÓõÄbuffers Óëcache ºÍδ±»·ÖÅäµÄÄÚ´æÖ®ºÍ£¬Õâ¾ÍÊÇϵͳµ±Ç°Êµ¼Ê¿ÉÓÃÄÚ´æ¡£
¡¡¡¡¿ÉÒÔÕûÀí³öÈçϵÈʽ£º
¡¡¡¡total1 = used1 + free1total1 = used2 + free2used1 = buffers1 + cached1 + used2free2 = buffers1 + cached1 + free1
¡¡¡¡buffer Óëcache µÄÇø±ð
¡¡¡¡A buffer is something that has yet to be "written" to disk. A cache is something that has been "read" from the disk and stored for later use.
¡¡¡¡¸üÏêϸµÄ½âÊͲο¼£ºDifference Between Buffer and Cache
¡¡¡¡¶ÔÓÚ¹²ÏíÄڴ棨Shared memory£©£¬Ö÷ÒªÓÃÓÚÔÚUNIX »·¾³Ï²»Í¬½ø³ÌÖ®¼ä¹²ÏíÊý¾Ý£¬Êǽø³Ì¼äͨÐŵÄÒ»ÖÖ·½·¨£¬Ò»°ãµÄÓ¦ÓóÌÐò²»»áÉêÇëʹÓù²ÏíÄڴ棬±ÊÕßҲûÓÐÈ¥ÑéÖ¤¹²ÏíÄÚ´æ¶ÔÉÏÃæµÈʽµÄÓ°Ïì¡£Èç¹ûÄãÓÐÐËȤ£¬Çë²Î¿¼£ºWhat is Shared Memory?
¡¡¡¡cache ºÍ bufferµÄÇø±ð£º
¡¡¡¡Cache£º¸ßËÙ»º´æ£¬ÊÇλÓÚCPUÓëÖ÷ÄÚ´æ¼äµÄÒ»ÖÖÈÝÁ¿½ÏСµ«ËٶȺܸߵĴ洢Æ÷¡£ÓÉÓÚCPUµÄËÙ¶ÈÔ¶¸ßÓÚÖ÷Äڴ棬CPUÖ±½Ó´ÓÄÚ´æÖдæÈ¡Êý¾ÝÒªµÈ´ýÒ»¶¨Ê±¼äÖÜÆÚ£¬CacheÖб£´æ×ÅCPU¸ÕÓùý»òÑ­»·Ê¹ÓõÄÒ»²¿·ÖÊý¾Ý£¬µ±CPUÔÙ´ÎʹÓøò¿·ÖÊý¾Ýʱ¿É´ÓCacheÖÐÖ±½Óµ÷ÓÃ,Õâ


Ïà¹ØÎĵµ£º

RedHat Linux AS 5 ´î½¨J2EEÔËÐл·¾³£¨Ò»£© °²×°JDK

2.1 °²×°JDK
2.1.1 ¼ì²éLinux×Ô´øJDK
ÃüÁrpm –q jdk
   
Èç¹û°²×°Ç¿ÖÆжÔØ
   ²é¿´ÒѾ­°²×°µÄjdk£º
   # rpm -qa|grep jdk                ← ²é¿´jdkµÄÐÅÏ¢»òÖ±½ÓÖ´ÐÐ
   #rpm -qa|grep ......

Unix/Linux³£ÓÃÃüÁî—±¸·ÝÓëѹËõ

tarÃüÁî
tar¿ÉÒÔΪÎļþºÍĿ¼´´½¨µµ°¸¡£ÀûÓÃtar£¬Óû§¿ÉÒÔΪijһÌض¨Îļþ´´½¨µµ°¸£¨±¸·ÝÎļþ£©£¬Ò²¿ÉÒÔÔÚµµ°¸ÖиıäÎļþ£¬»òÕßÏòµµ°¸ÖмÓÈëеÄÎļþ¡£tar×î³õ±»ÓÃÀ´ÔÚ´Å´øÉÏ´´½¨µµ°¸£¬ÏÖÔÚ£¬Óû§¿ÉÒÔÔÚÈκÎÉ豸ÉÏ´´½¨µµ°¸£¬ÈçÈíÅÌ¡£ÀûÓÃtarÃüÁ¿ÉÒÔ°ÑÒ»´ó¶ÑµÄÎļþºÍĿ¼ȫ²¿´ò°ü³ÉÒ»¸öÎļþ£¬Õâ¶ÔÓÚ±¸·ÝÎļþ»ò½«¼¸¸öÎļþ× ......

LINUX RSYNCÅäÖÃÏê½â

1£¬Ê×ÏÈSERVERÓëCLIENT¶¼ÐèÒª°²×°RSYNC
2£¬Æä´ÎÔÚSERVERµÄ/etc/ÏÂÃ潨Á¢rsyncd.conf 
ÄÚÈÝ¿ÉÒÔ°´ÕÕÏÂÃæµÄд·¨
[root@vm-base-01 local]# more /etc/rsyncd.conf
uid =
root                     &n ......

OUI 25031 linux°²×°oracle

/etc/hostsÒ»¶¨ÒªÓÐÑϸñµÄ¸ñʽ!!!
grid control 10.2.0.1.1°²×°×¢ÒâÊÂÏî
1.hostname
ÍøÂ磺
    ¾¡Á¿Ê¹Óþ²Ì¬IP£¬/etc/hostsµÄÎļþ¸ñʽºÜÖØÒª£¬²»ÖªµÀÊǸöBUG»¹ÊÇÒªÇó¾ÍÊÇÄÇôÑϸñ¡£ÎÒÒ»¿ªÊ¼¾ÍÊÇÔÚÕâ³ÔµÄ¿÷£¬ÔÚprecheckÐèÇóµÄʱºòºöÂÔÁË/etc/hosts¼ì²éʧ°ÜµÄ´íÎ󣬽á¹û°²×°Èí¼þûÎÊÌ⣬µ«ÅäÖõÄʱºò³ö´í ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ