本文教你如何使用網(wǎng)絡(luò)流量查看工具-iptraf-ng。
iptraf-ng 可以方便查看當(dāng)前服務(wù)器網(wǎng)絡(luò)狀況:CentOS 7.0,采用了衍生版本iptraf-ng。
iptraf-ng -husage: iptraf-ng [options]or: iptraf-ng [options] -B [-i <iface> | -d <iface> | -s <iface> | -z <iface> | -l <iface> | -g]-h, --helpshow this help message-i <iface>start the IP traffic monitor (use '-i all' for all interfaces)-d <iface>start the detailed statistics facility on an interface-s <iface>start the TCP and UDP monitor on an interface-z <iface>shows the packet size counts on an interface-l <iface>start the LAN station monitor (use '-l all' for all LAN interfaces)-gstart the general interface statistics-Brun in background (use only with one of the above parameters-fclear all locks and counters-t <n>run only for the specified <n> number of minutes-L <logfile>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ī)端口:

文章插圖
【網(wǎng)站訪問量統(tǒng)計(jì)工具使用 網(wǎng)站流量查詢工具】“iptraf -i eth0” 的輸出分為兩個(gè)窗口,上面是TCP socket pairs , 下面是UDP 。我們根據(jù)端口號 使用 lsof 可以找到對應(yīng)的進(jìn)程號 。
以上關(guān)于本文的內(nèi)容,僅作參考!溫馨提示:如遇健康、疾病相關(guān)的問題,請您及時(shí)就醫(yī)或請專業(yè)人士給予相關(guān)指導(dǎo)!
「愛刨根生活網(wǎng)」www.malaban59.cn小編還為您精選了以下內(nèi)容,希望對您有所幫助:- Excel如何高效統(tǒng)計(jì)不同數(shù)據(jù)的個(gè)數(shù)
- francehealth海淘網(wǎng)站 Farfetch優(yōu)惠碼
- 如何在360瀏覽器中允許所有網(wǎng)站運(yùn)行 JavaScript
- farfetch海淘網(wǎng)站怎么開店 farfetch海淘網(wǎng)站
- 可以海外購物的網(wǎng)站有哪些 可以海外購物的網(wǎng)站
- 提升網(wǎng)站SEO效果的關(guān)鍵:合理運(yùn)用meta標(biāo)簽
- 嗶哩嗶哩網(wǎng)站端的合集和列表在哪里查看?
- 優(yōu)化SEO:提升網(wǎng)站排名的重要性
- Excel根據(jù)姓氏統(tǒng)計(jì)總產(chǎn)量
- yandex是什么搜索?谷歌翻譯退出了國內(nèi)市場?來看看還有哪些翻譯網(wǎng)站值得收藏吧!
