linux Óëwindows netstatÃüÁî²é¿´¶Ë¿ÚÊÇ·ñÕ¼ÓÃ
netstatÃüÁîÊÇÒ»¸ö¼à¿ØTCP/IPÍøÂçµÄ·Ç³£ÓÐÓõŤ¾ß£¬Ëü¿ÉÒÔÏÔʾ·ÓÉ±í¡¢Êµ¼ÊµÄÍøÂçÁ¬½ÓÒÔ¼°Ã¿Ò»¸öÍøÂç½Ó¿ÚÉ豸µÄ״̬ÐÅÏ¢£¬ÕâÀïÎÒÖ»Óõ½ÆäÖеIJ¿·Ö¹¦ÄÜ.
netstat µÄ³£ÓòÎÊý: - t¡¢- u¡¢- wºÍ- x·Ö±ð±íʾTCP¡¢UDP¡¢RAWºÍUNIXÌ×½Ó×ÖÁ¬½Ó¡£-a±ê¼Ç£¬»¹»áÏÔʾ³öµÈ´ýÁ¬½Ó£¨Ò²¾ÍÊÇ˵´¦ÓÚ¼àÌýģʽ£©µÄÌ×½Ó×Ö¡£-l ÏÔʾÕýÔÚ±»¼àÌý(listen)µÄ¶Ë¿Ú, -n±íʾֱ½ÓÏÔʾ¶Ë¿ÚÊý×Ö¶ø²»ÊÇͨ¹ý²ì¿´/etc/serviceÀ´×ª»»Îª¶Ë¿ÚÃû,-pÑ¡Ïî±íʾÁгö¼àÌýµÄ³ÌÐò
1) netstat -tl
²é¿´µ±Ç°tcp¼àÌý¶Ë¿Ú
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:rrac *:* LISTEN
tcp 0 0 *:34006 *:* LISTEN
......
2) netstat -tlp
²é¿´µ±Ç°tcp¼àÌý¶Ë¿Ú, ÐèÒªÏÔʾ¼àÌýµÄ³ÌÐòÃû,µ±²»Çå³þmysqlµÄ¼àÌý¶Ë¿Úʱ±È½ÏºÃÓÃ
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:rrac *:* &nbs
Ïà¹ØÎĵµ£º
£¨L2CAPÐÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPÐÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼Á¬½Ó¿ØÖƺÍÊÊÅäÐÒé (L2CAP) ΪÉϲãÐÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àÐÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãÐÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......
Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖÐÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀÐÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......
LinuxʵÓôúÂë--Îļþϵͳ²Ù×÷
from cu
[size=13px]ÕâƪÎĵµÊµÓÃÐÔºÜÇ¿£¬Ëü²»Êǽ²Ä³¸öÃüÁîµÄ²ÎÊý¾ßÌ庬Ò壬¶øÊÇ´Óʵ¼Ê¹¤×÷µÄ½Ç¶ÈÀ´¿¼ÂÇ£¬Íê³Éʲô¹¤×÷ÐèҪʲôָÁî¡£
Îļþϵͳ²Ù×÷ÊÇ×î»ù±¾µÄ²Ù×÷£¬Ã»ÓÐÎļþϵͳ£¬²Ù×÷ϵͳ¸ù±¾¾ÍÔËÐв»ÁË¡£
ÏÂÃæÊÇÎÒÃǾ³£Òª×öµÄһЩÊÂÇé¡£ÔÚÏÂÃæ¾ßÌå²ÎÊýÒâÒå²»½ ......
1¡¢×ܽᱳ¾°
ÔÚlinuxϵͳÏ£¬Èç¹ûÄãÏÂÔز¢°²×°ÁËÓ¦ÓóÌÐò£¬ºÜÓпÉÄÜÔÚ¼üÈëËüµÄÃû³Æʱ³öÏÖ“command not found”µÄÌáʾÄÚÈÝ¡£Èç¹ûÿ´Î¶¼µ½°²×°Ä¿±êÎļþ¼ÐÄÚ£¬ÕÒµ½¿ÉÖ´ÐÐÎļþÀ´½øÐвÙ×÷¾ÍÌ«·±ËöÁË¡£ÕâÉæ¼°µ½»·¾³±äÁ¿PATHµÄÉèÖÃÎÊÌ⣬¶øPATHµÄÉèÖÃÒ²ÊÇÔÚlinux϶¨ÖÆ»·¾³±äÁ¿µÄÒ»¸ö×é³É²¿·Ö¡£±¾°¸Àý»ùÓÚRedH ......
linuxÏÂvi±à¼Æ÷ÃüÁî
Îı¾±à¼Æ÷ÊÇËùÓмÆËã»úϵͳÖÐ×î³£ÓõÄÒ»ÖÖ¹¤¾ß¡£UNIXϵıà¼Æ÷ÓÐex,sedºÍviµÈ£¬ÆäÖУ¬Ê¹ÓÃ×îΪ¹ã·ºµÄÊÇvi£¬¶øviÃüÁî·±¶à£¬ÂÛ̳ÀïºÃÏñÕâ·½ÃæµÄ×ܽ᲻¶à£¬ÒÔÏÂÉÔ×ö×ܽᣬÒÔ×ʹ²Ïí!¿ÊÍû¸üÕýºÍ²¹³ä!
¡¡¡¡½øÈëviµÄÃüÁî
¡¡¡¡vi filename :´ò¿ª»òн¨Îļþ£¬²¢½«¹â±êÖÃÓÚµÚÒ»ÐÐÊ×
¡¡¡¡vi +n filena ......