¸öÈ˱ȽÏϲ»¶iftop£¬ËüÄܶ¯Ì¬µÄÓüòµ¥µÄASCͼ±êÊ¶Íø¿¨µ±Ç°Á÷Á¿
Ê×ÐÐÊÇÍøÂçÁ÷Á¿¿Ì¶È£¬
ÖмäÊÇÓëÆäËü»úÆ÷µÄÁ÷Á¿£¬Óиö°×µ×µÄbarÖ±¹ÛµÄ±êʶÁ÷Á¿±ä»¯£¬ºóÈýÁÐÊý¾Ý·Ö±ð±íʾ£º
1. preceding 2 seconds ¹ýÈ¥Á½ÃëÖÓµÄÁ÷Á¿£¨traffic£©
2. around half that amount over the preceding 10s ¹ýȥʮÃëÖÓÁ÷Á¿µÄÒ»°ë
3. a fifth of that over the whole of the last 40s ¹ýÈ¥40ÃëÖÓÁ÷Á¿µÄÎå·ÖÖ®Ò»
µ×ÏÂ3ÐÐ
TX£º·¢ËÍÁ÷Á¿
RX£º½ÓÊÕÁ÷Á¿
TOTAL£º×ÜÁ÷Á¿
cumm£ºÔËÐÐiftopÒÔÀ´µÄ×ÜÁ÷Á¿
peak£º·åÖµÁ÷Á¿
rates£º·Ö±ð±íʾ¹ýÈ¥ 2s 10s 40sʱ¼äÄÚÍø¿¨×ܵį½¾ùÁ÷Á¿
°´h¿ÉÒԵõ½°ïÖú£¬´Ó°ïÖú»Øµ½Á÷Á¿Í¼Ò²Êǰ´h
°´Á÷Á¿ÅÅÐò
³£ÓõIJÎÊý£º
# /usr/local/iftop/sbin/iftop help //²é¿´°ïÖúÃüÁî
-iÉ趨¼à²âµÄÍø¿¨£¬È磺# iftop -i eth1
-B ÒÔbytesΪµ¥Î»ÏÔʾÁ÷Á¿(ĬÈÏÊÇbits)£¬È磺# iftop -B
-nʹhostÐÅϢĬÈÏÖ±½Ó¶¼ÏÔʾIP£¬È磺# iftop -n
-Nʹ¶Ë¿ÚÐÅϢĬÈÏÖ±½Ó¶¼ÏÔʾ¶Ë¿ÚºÅ£¬Èç: # iftop -N
-FÏÔÊ¾ÌØ¶¨Íø¶ÎµÄ½ø³öÁ÷Á¿£¬Èç# iftop -F 10.10.1.0/24»ò# iftop -F 10.10.1.0/255.255.255.0
-h£¨display this message£©Ã»Ã÷°×ɶÒâË¼ÄØ¡£¡£¡£hehe
-pʹÓÃÕâ¸ö²ÎÊýºó£¬ÖмäµÄÁбíÏÔʾµÄ± ......
1£¬Ê×ÏÈSERVERÓëCLIENT¶¼ÐèÒª°²×°RSYNC
2£¬Æä´ÎÔÚSERVERµÄ/etc/ÏÂÃæ½¨Á¢rsyncd.conf
ÄÚÈÝ¿ÉÒÔ°´ÕÕÏÂÃæµÄд·¨
[root@vm-base-01 local]# more /etc/rsyncd.conf
uid =
root ///RSYNCÆô¶¯ID
gid = root
use chroot =
no
log file = /var/log/rsyncd.log ////ÈÕÖ¾´æ·Å
pid file =
/var/run/rsyncd.pid
lock file = /var/run/rsync.lock
[publishonline] ///Ä£¿éÃû³Æ---Ò²¾ÍÒ»¸öÐèҪͬ²½»ò±¸·ÝµÄĿ¼
path =
/usr/local/apache/htdocs/publish/online/images
comment = home cad
folder
ignore errors
read only = yes
list = no
auth users = xp20adm ////µÇ¼Óû§Ãû--×ÔÎÒËæÒâÉèÖÃ
secrets file =
/etc/rsyncd.scrt&n ......
/etc/hostsÒ»¶¨ÒªÓÐÑϸñµÄ¸ñʽ!!!
grid control 10.2.0.1.1°²×°×¢ÒâÊÂÏî
1.hostname
ÍøÂ磺
¾¡Á¿Ê¹Óþ²Ì¬IP£¬/etc/hostsµÄÎļþ¸ñʽºÜÖØÒª£¬²»ÖªµÀÊǸöBUG»¹ÊÇÒªÇó¾ÍÊÇÄÇôÑϸñ¡£ÎÒÒ»¿ªÊ¼¾ÍÊÇÔÚÕâ³ÔµÄ¿÷£¬ÔÚprecheckÐèÇóµÄʱºòºöÂÔÁË/etc/hosts¼ì²éʧ°ÜµÄ´íÎ󣬽á¹û°²×°Èí¼þûÎÊÌ⣬µ«ÅäÖõÄʱºò³ö´íÁË£¬ÕÒ²»µ½Ö÷»úÃû£¬¶øÏÔʽ%hostname%Ìæ»»±äÁ¿¡£
ÕýÈ·µÄ¸ñʽsample£º
127.0.0.1 localhost.localdomain localhost
192.168..128.130 hostname.domain hostname
Ò»¶¨ÒªÓÐÓòÃûºó׺.domain,¶øÇÒhostnameºÍhostname.domain²»Äܵ÷»»Î»Öã¬Èç¹ûµ÷»»Ò²±¨´í¡£
Áí±ØÐëÒªÓÐ127.0.0.1¶¨ÒåÔÚ/etc/hostsÎļþÀҪ²»È»Êý¾Ý¿â¼àÌýÆ÷Æô¶¯²»ÁË¡£
2.ÅäÖÃomsʱºò±¨´íoui 25031
ÐÞ¸ÄÅäÖÃÎļþºóretry
¸Ä/opt/oracle/OracleHomes/oms10g/opmn/conf/opmn.xmlÎļþ£¬ÔÚ
<ias-component id="HTTP_Server">
<process-type id="HTTP_Server" module-id="OHS">ºó²åÈë
<environment>
<variable id="LD_PRELOAD" value="/opt/oracle/OracleHomes/oms10g/li ......
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£ºÊµ¼ÊʹÓõÄbuffer ......
Linux, named after the inventor, Linus Torvalds, is a so different OS for everyone against Windows. To everyone who used to use Windows, Linux need us to do more for everything which we usually do by computer, such as playing a video.
Someone says, Linux is for the ones who are good at the computer technique. For example the programmer use Linux to program, or the mathematician use it to do the numerical work.. It’s right. Linux always used by the professional formerly, because this OS ask the operator knows a lot about the OS how to work. Compared to Linux, Windows seems very easy for us, and in the most time, clicking the mouse is enough.
But there are two problems for us. The first one is did we get all the licenses for the software we are using. I think there is almost no one can say ‘Yes, I did’ in China, who use Windows. In the daily life, we used the piracy of the OS and the application software, although we know is wrong. There a fact that we can’t aff ......
Linux select()Ïê½â selectϵͳµ÷ÓÃÊÇÓÃÀ´ÈÃÎÒÃǵijÌÐò¼àÊÓ¶à¸öÎļþ¾ä±ú(file descriptor)µÄ״̬±ä»¯µÄ¡£³ÌÐò»áÍ£ÔÚselectÕâÀïµÈ´ý£¬Ö±µ½±»¼àÊÓµÄÎļþ¾ä±úÓÐijһ¸ö»ò¶à¸ö·¢ÉúÁË״̬¸Ä±ä¡£ ÎļþÔÚ¾ä±úÔÚLinuxÀïºÜ¶à£¬Èç¹ûÄãmanij¸öº¯Êý£¬ÔÚº¯Êý·µ»ØÖµ²¿·Ö˵µ½³É¹¦ºóÓÐÒ»¸öÎļþ¾ä±ú±»´´½¨µÄ¶¼Êǵģ¬Èçman socket¿ÉÒÔ¿´µ½“On success, a file descriptor for the new socket is returned.”¶øman 2 open¿ÉÒÔ¿´µ½“open() and creat() return the new file descriptor”£¬ÆäʵÎļþ¾ä±ú¾ÍÊÇÒ»¸öÕûÊý£¬¿´socketº¯ÊýµÄÉùÃ÷¾ÍÃ÷°×ÁË£º int socket(int domain, int type, int protocol); µ±È»£¬ÎÒÃÇ×îÊìϤµÄ¾ä±úÊÇ0¡¢1¡¢2Èý¸ö£¬0ÊDZê×¼ÊäÈ룬1ÊDZê×¼Êä³ö£¬2ÊDZê×¼´íÎóÊä³ö¡£0¡¢1¡¢2ÊÇÕûÊý±íʾµÄ£¬¶ÔÓ¦µÄFILE *½á¹¹µÄ±íʾ¾ÍÊÇstdin¡¢stdout¡¢stderr£¬0¾ÍÊÇstdin£¬1¾ÍÊÇstdout£¬2¾ÍÊÇstderr¡£±ÈÈçÏÂÃæÕâÁ½¶Î´úÂë¶¼ÊÇ´Ó±ê×¼ÊäÈë¶ÁÈë9¸ö×Ö½Ú×Ö·û£º #include #include #include int main(int argc, char ** argv) { char buf[10] = ""; read(0, buf, 9); /* ´Ó±ê×¼ÊäÈë 0 ¶ÁÈë×Ö·û */ fprintf(stdout, "%s\n", buf); /* Ïò±ê×¼Êä³ö stdout д×Ö·û */ return 0; } /* ** ......