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

linuxÏÂ×¥Êý¾Ý°ü


linuxϵͳÈçºÎץȡÊý¾Ý°ü½øÐзÖÎö
(2009-08-30 23:59:37) linuxÉÏÓÐÁ½ÖֱȽϺõÄ×¥°ü¹¤¾ß£ºetherealºÍtcpdump
¶ÔÓÚethereal£¬ÓÐͼÐνçÃæºÍ×Ö·û½çÃæÁ½ÖÖ·½Ê½¡£
µ½linuxϵͳÉÏÖ´ÐÐrpm -qa | grep ethereal-gnome¿É²é¿´ÊÇ·ñ°²×°ÁËͼÐΰ汾
µ«ÊÇÈç¹û·þÎñÆ÷ÉÏûÓÐxwinͼÐλ·¾³£¬ÄÇô¾ÍÖ»ÄÜÓÃ×Ö·û½çÃæÁË
ÃüÁtethereal
¿ÉÑ¡²ÎÊý£º-V¡¢-f
Èç¹ûÖ»Ö´ÐÐtethereal£¬ÄÇô½«Ö»×¥È¡Êý¾Ý°üµÄ°üÍ·£¬²»ÏÔʾÀï±ßµÄÄÚÈÝ¡£¼ÓÉÏ-V²ÎÊýºó£¬¼´¿ÉÏÔʾÄÚÈÝ¡£
-f ²ÎÊýÓÃÓÚ¹ýÂË£¬Ä¬ÈÏÇé¿öϽ«×¥È¡tcpºÍudpËùÓÐЭÒé¡£
Èç¹ûÏëץȡUDPÊý¾Ý°ü²¢ÏÔʾÄÚÈÝ£¬ÔòÖ´ÐÐtethereal -V -f udp ¼´¿É
ÁíÍ⻹¿ÉÒÔÅäºÏgrepÃüÁîÌáÈ¡ÐèÒªµÄ¹Ø¼üÄÚÈÝ
tcudumpÃüÁîÊÇÁíÍâÒ»¸öÓÐÓõŤ¾ß£¬Ö»ÄÜÔÚ×Ö·ûÏÂʹÓã¬
tcpdump -n -nn -vv -XX -tttt -c 10 -e
²ÎÊý£º
-n£ºÊý×ֶ˿Ú
-nn£ºÊý×ÖµØÖ·
-vv£ºÊä³öÏêϸÐÅÏ¢
-c£º×¥È¡°üµÄÊýÁ¿
-e£º´òÓ¡ÒÔÌ«Íø±¨Í·ÐÅÏ¢
-i£ºÑ¡ÔñÊÊÅäÆ÷


Ïà¹ØÎĵµ£º

linuxÖÐ×Ö·û´®µÄ´¦Àí

st='abcd'
1.×Ö·û´®³¤¶È
expr length $st »òÕß ${#st}
2.È¡×Ö·û´®µÄsubstring
expr substr "$var" startpos length »òÕß ${var:m} ${var:m:len}
${var:m}ÖеÄmµÄÈ¡Öµ´Ó0µ½${#var}-1£¬Æä·µ»ØµÄÊÇ´ÓµÚm¸ö×Ö·ûµ½×îºóµÄ²¿·Ö£»ÀýÈçecho ${st:1}µÄ½á¹ûÊÇ'bcd'
expr substr "$var" startpos length ÖеÄstartposÈ¡Öµ·¶Î§ÊÇ ......

Linux °²×° memcached ±¸Íü

1.±àÒë°²×°libevent
2.±àÒë°²×°Memcached
ÔÚÎÒдÕâƪÎÄÕµÄʱºò£¬libeventÒѾ­ÓÐ1.4.8Îȶ¨°æ
£¬Memcached ServerÒѾ­ÓÐ1.3.0°æ±¾
¡£±¾ÎľÍÒÔÕâÁ½¸ö°æ±¾ÎªÀý£¬ÎÒµÄgccÊÇgcc version 3.3.4 (Debian 1:3.3.4-7)¡£
Ê×ÏÈ°²×°libevent
wget http://www.monkey.org/~provos/libevent-1.4.8-stable.tar.gz
tar zxvf libeven ......

linux socketѧϰ±Ê¼Ç£¨µÚ¶þÕ£©


ÓòºÍµØÖ·×å
    ÓÐÒ»¸öºÜÇ¡µ±µÄ±ÈÓ÷˵Ã÷Ì×½Ó¿Ú±à³Ì£¬Ì׽ӿھͺñȵ绰£¬¶øµç»°ÍøÖеĵ绰ºÅÂë¾ÍºÃÏñÌ×½Ó¿ÚµØÖ·¡£ËµÃ÷Ì×½Ó¿Ú¿ÉÒÔÓÃÌض¨µÄµØÖ·À´±êʾ×Ô¼º¡£²¢²»ÊÇËùÓеÄÌ×½Ó¿Ú¶¼ÐèÒªµØÖ·£¬±ÈÈçÎÞÃûÌ׽ӿھͲ»ÐèÒªµØÖ·£¬ÀýÈ纯Êýsocketpair(2)¾ÍÉú³ÉÁËÒ»¶Ô»¥Ïà¿ÉÒÔÁ¬½Óµ«ÊÇȴûÓеØÖ·µÄÌ×½Ó¿Ú¡£ÊéÖбÈÓ÷˵¾Í ......

Îå´ó·Ç³£¼ûLinuxÃüÁî

Îå´ó·Ç³£¼ûLinuxÃüÁî
 2010-1-29
µ¼¶Á£º±¾ÎĽéÉÜLinux²»³£¼ûµÄÎå¸öÃüÁî¡£°üÀ¨logsave¡¢diff3ºÍpstreeµÈ¡£
¹Ø¼ü´Ê£ºLinux logsave diff3 pstree
 
ÕýÔÚ¼ÓÔØÊý¾Ý...
¡¾TechTargetÖйúÔ­´´¡¿LinuxÓдóÁ¿µÄÃüÁîÐй¤¾ß£¬´ÓÿÌ춼»áʹÓõÄls¡¢cdÒÔ¼°psÕâЩ¹¤¾ß£¬µ½Äú¿ÉÄÜ»¹Ã»ÓÐʹÓùý£¬»òÕßÉõÖÁûÓÐÌý˵¹ýµÄ²»³ ......

linuxѧϰ±Ê¼Ç 0.µ¼ÂÛ£¨¸ÅÊö£¬Ñ§Ï°·½·¨Æª£©

һ.Ϊʲôѧlinux
1.ÐÔÄÜ׿Խ
¿ªÔ´£¬Ãâ·Ñ£¬Îȶ¨£¬°²È«£¬´¦Àí¶à²¢·¢
2.¹¤×÷·½Ã棺
linuxϵͳ¹ÜÀíÔ±
linux³ÌÐòÔ±£¨linuxÈí¼þ¹¤³Ìʦ£¬linuxǶÈëʽ¿ª·¢£©
¶þ.Á÷³Ì
µÚÒ»½×¶Î£ºlinuxƽ̨ÉϵĿª·¢£¬°üÀ¨vi£¬gcc,gdb,make,jdk,tomcat,mysql..linux»ù±¾²Ù×÷
µÚ¶þ½×¶Î£º¼ÓºñC¹¦µ×»òjava
µÚÈý½×¶Î£º¡¶unix»·¾³¸ß¼¶±à³Ì¡·
µÚ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ