十年網(wǎng)站開(kāi)發(fā)經(jīng)驗(yàn) + 多家企業(yè)客戶 + 靠譜的建站團(tuán)隊(duì)
量身定制 + 運(yùn)營(yíng)維護(hù)+專業(yè)推廣+無(wú)憂售后,網(wǎng)站問(wèn)題一站解決
IPTraf-ng是用于Linux的基于控制臺(tái)的網(wǎng)絡(luò)監(jiān)視程序,該程序顯示有關(guān)IP流量的信息,下面為大家詳細(xì)講解一下IPTraf-ng的使用方法。

烏當(dāng)ssl適用于網(wǎng)站、小程序/APP、API接口等需要進(jìn)行數(shù)據(jù)傳輸應(yīng)用場(chǎng)景,ssl證書(shū)未來(lái)市場(chǎng)廣闊!成為成都創(chuàng)新互聯(lián)公司的ssl證書(shū)銷售渠道,可以享受市場(chǎng)價(jià)格4-6折優(yōu)惠!如果有意向歡迎電話聯(lián)系或者加微信:028-86922220(備注:SSL證書(shū)合作)期待與您的合作!
iptraf-ng -h
usage: iptraf-ng [options]
or: iptraf-ng [options] -B [-i
| -d
| -s
| -z
| -l
| -g] -h, --
help show this
help message -i
start the IP traffic monitor (use
'-i all'
for all interfaces) -d
start the detailed statistics facility on an interface -s
start the TCP and UDP monitor on an interface -z
shows the packet size counts on an interface -l
start the LAN station monitor (use
'-l all'
for all LAN interfaces) -g start the general interface statistics -B run
in background (use only with one of the above parameters -f clear all locks and counters -t
run only
for the specified
number of minutes -L
specifies an alternate
log file
“iptraf -g” 顯示每一個(gè)網(wǎng)卡上的流量:
“iptraf -d eth0” 顯示指定網(wǎng)卡上的流量統(tǒng)計(jì),總體流量、流入量、流出量、以及按協(xié)議分類的流量統(tǒng)計(jì):
“iptraf -s eth0” 統(tǒng)計(jì)各port的流量:
“iptraf -i eth0” 查看遠(yuǎn)程主機(jī)端口:
“iptraf -i eth0” 的輸出分為兩個(gè)窗口,上面是TCP socket pairs,下面是UDP。我們根據(jù)端口號(hào) 使用 lsof 可以找到對(duì)應(yīng)的進(jìn)程號(hào)。