1.安装iftop(因为系统本系不自带)
查看iftop安装需要相关套件
引用
[root@10 src]# rpm -qa |grep libpcap
libpcap-0.9.4-8.1
libpcap-devel-0.9.4-8.1
下载软件:
iftop官方网站:
http://www.ex-parrot.com/~pdw/iftop/[root@10 /]# wget -c http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.17.tar.gz
--14:00:48-- http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.17.tar.gz
Resolving www.ex-parrot.com... 93.93.130.49
Connecting to www.ex-parrot.com|93.93.130.49|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 160381 (157K) [application/gzip]
--14:00:50-- (try: 2) http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.17.tar.gz
Connecting to www.ex-parrot.com|93.93.130.49|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 160381 (157K) [application/gzip]
Saving to: `iftop-0.17.tar.gz'
100%[===========================================================================================>] 160,381 64.6K/s in 2.4s
14:00:53 (64.6 KB/s) - `iftop-0.17.tar.gz' saved [160381/160381]
引用
[root@10 /]#tar zxvf iftop-0.17.tar.gz && cd iftop-0.17 && make && make install
2.看到eth0网卡的流量状况
引用
[root@10 /]# iftop -i eth0 -n