1. nethogs: 按进程查看流量占用
[[email protected] ~]# yum -y install epel-release.noarch
[email protected] ~]# yum -y install nethogs.x86_64
2. iptraf: 按连接/端口查看流量
[[email protected] ~]# yum -y install iptraf-ng.x86_64
3. ifstat: 按设备查看流量
http://gael.roualland.free.fr/ifstat/ (官网)
[[email protected] ~]# wget http://gael.roualland.free.fr/ifstat/ifstat-1.1.tar.gz
[[email protected] ~]# tar xf ifstat-1.1.tar.gz
[[email protected] ~]# cd ifstat-1.1
[[email protected] ifstat-1.1]# yum -y install gcc net-snmp
[[email protected] ifstat-1.1]# ./configure
[[email protected] ifstat-1.1]# make && make install
[[email protected] ifstat-1.1]# which ifstat
/usr/local/bin/ifstat
[[email protected] ifstat-1.1]# /usr/local/bin/ifstat -tT
4. ethtool: 诊断工具
5. tcpdump: 抓包工具
[[email protected] ~]# yum -y install tcpdump.x86_64
6. ss: 连接查看工具
[[email protected] ~]# ss -tnl
7. 其他:
1)dstat,
[[email protected] ~]# yum -y install dstat.noarch
[[email protected] ~]# dstat -nf
2) slurm,
集群使用
3)nload,
[[email protected] ~]# yum -y install nload.x86_64
4)bmon
[[email protected] ~]# yum -y install bmon.x86_64
###############################################################################
1. 命令行有 vnstat,轻量, 支持统计
# yum -y install vnstat.x86_64
# vnstat -u -i eth0 #初始化,绑定要监测的网卡的名称,比如eth0
2.Web 前端有 vnstatsvg,轻量,省流量,支持普通服务器,嵌入式系统还轻松支持集群。
3.atop
[[email protected] ~]# yum -y install atop.x86_64
4. Iftop
5.iotop
[[email protected] ~]# yum -y install iotop
原文地址:http://blog.51cto.com/wangqh/2090208