centos 安裝iftop

iftop是linux下的一個流量監控工具,用於查看實時網絡流量。
官網:http://www.ex-parrot.com/pdw/iftop/html

一、安裝必須軟件包

yum install libpcap libpcap-devel ncurses ncurses-devel

二、安裝iftop

cd /tmp
wget http://www.ex-parrot.com/pdw/iftop/download/iftop-0.17.tar.gz
tar -zxvf iftop-0.17.tar.gz
cd iftop-0.17
./configure
make
make install

三、使用
(1)iftop
直接啓動iftop。
linux

(2)iftop -i eth0 -n
監測網卡eth0,直接顯示IP。網絡

四、經常使用參數
進入iftop後可按h查看幫助。工具

Host display:
n - 切換DNS解析,顯示IP或主機名
s - 切換顯示/隱藏本機host信息
d - 切換顯/隱藏示遠程主機host信息
t - 一行顯示模式(默認爲兩行)spa

Port display:
N - 切換打開/關閉端口服務解析
S - 切換顯示/隱藏原主機端口
D - 切換顯示/隱藏遠程主機端口
p - 切換顯示/隱藏端口信息code

Sorting:
1/2/3 - 按1或2或3能夠根據右側顯示的三列流量數據進行排序
< - 按照原主機名排序 > - 按遠端主機名排序
o - 固定只顯示當前的鏈接htm

General:
P - 暫停/開始
h - 切換顯示help
b - 切換顯示流量條
B - 切換計算2秒或10秒或40秒內的平均流量
T - 切換是否顯示每一個鏈接的總流量
j/k - 上下滾動顯示
L - 切換流量條刻度(linear scale and logarithmic scale)排序

參考資料:
http://www.osyunwei.com/archives/1211.htmlget

相關文章
相關標籤/搜索