系統(tǒng)之家 - 系統(tǒng)光盤(pán)下載網(wǎng)站!

當(dāng)前位置:系統(tǒng)之家 > 系統(tǒng)教程 > Linux中netstat命令操作實(shí)例

Linux中netstat命令操作實(shí)例匯總(4)

時(shí)間:2014-12-30 15:59:47 作者:qipeng 來(lái)源:系統(tǒng)之家 1. 掃描二維碼隨時(shí)看資訊 2. 請(qǐng)使用手機(jī)瀏覽器訪(fǎng)問(wèn): https://m.xitongzhijia.net/xtjc/20141230/33733.html 手機(jī)查看 評(píng)論

  代碼如下:

 。踨oot@localhost ~]# netstat -s

  Ip:

  530999 total packets received

  0 forwarded

  0 incoming packets discarded

  530999 incoming packets delivered

  8258 requests sent out

  1 dropped because of missing route

  Icmp:

  90 ICMP messages received

  0 input ICMP message failed.

  ICMP input histogram:

  destination unreachable: 17

  echo requests: 1

  echo replies: 72

  106 ICMP messages sent

  0 ICMP messages failed

  ICMP output histogram:

  destination unreachable: 8

  echo request: 97

  echo replies: 1

  IcmpMsg:

  InType0: 72

  InType3: 17

  InType8: 1

  OutType0: 1

  OutType3: 8

  OutType8: 97

  Tcp:

  8 active connections openings

  15 passive connection openings

  8 failed connection attempts

  3 connection resets received

  1 connections established

  3132 segments received

  2617 segments send out

  53 segments retransmited

  0 bad segments received.

  252 resets sent

  Udp:

  0 packets received

  0 packets to unknown port received.

  0 packet receive errors

  5482 packets sent

  TcpExt:

  1 invalid SYN cookies received

  1 TCP sockets finished time wait in fast timer

  57 delayed acks sent

  Quick ack mode was activated 50 times

  60 packets directly queued to recvmsg prequeue.

  68 packets directly received from backlog

  4399 packets directly received from prequeue

  520 packets header predicted

  51 packets header predicted and directly queued to user

  1194 acknowledgments not containing data received

  21 predicted acknowledgments

  0 TCP data loss events

  1 timeouts after reno fast retransmit

  9 retransmits in slow start

  42 other TCP timeouts

  3 connections aborted due to timeout

  IpExt:

  InBcastPkts: 527777

  說(shuō)明:

  按照各個(gè)協(xié)議分別顯示其統(tǒng)計(jì)數(shù)據(jù)。如果我們的應(yīng)用程序(如Web瀏覽器)運(yùn)行速度比較慢,或者不能顯示W(wǎng)eb頁(yè)之類(lèi)的數(shù)據(jù),那么我們就可以用本選項(xiàng)來(lái)查看一下所顯示的信息。我們需要仔細(xì)查看統(tǒng)計(jì)數(shù)據(jù)的各行,找到出錯(cuò)的關(guān)鍵字,進(jìn)而確定問(wèn)題所在。

  實(shí)例8:顯示監(jiān)聽(tīng)的套接口

  命令:netstat -l

標(biāo)簽 命令 netstat

發(fā)表評(píng)論

0

沒(méi)有更多評(píng)論了

評(píng)論就這些咯,讓大家也知道你的獨(dú)特見(jiàn)解

立即評(píng)論

以上留言?xún)H代表用戶(hù)個(gè)人觀(guān)點(diǎn),不代表系統(tǒng)之家立場(chǎng)

其他版本軟件

熱門(mén)教程

人氣教程排行

Linux系統(tǒng)推薦

官方交流群 軟件收錄