利用iftop查看网络带宽使用情况
2015-09-12 00:00
573 查看
摘要: CentOS 安装配置iftop 查看实时带宽
#利用iftop查看服务器实时流量 yum install -y gcc flex byacc libpcap ncurses ncurses-devel libpcap-devel tcpdump yum -y install iftop #下面是源码编译安装方式 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 /usr/local/iftop/sbin/iftop -i eth0 -B -n #就可以看到eth0网卡的流量状况
#参数说明: #TX发送 RX接收 TOTAL总流量 cum运行iftop后的总量 peak峰值 rates分别表示过去2s 10s 40s 平均流量
iftop -help iftop: display bandwidth usage on an interface by host Synopsis: iftop -h | [-npblNBP] [-i interface] [-f filter code] [-F net/mask] [-G net6/mask6] -h display this message -n don't do hostname lookups -N don't convert port numbers to services -p run in promiscuous mode (show traffic between other hosts on the same network segment) -b don't display a bar graph of traffic -B Display bandwidth in bytes 按字节单位显示 -i interface listen on named interface 设置监听网卡接口,默认eth0 -f filter code use filter code to select packets to count (default: none, but only IP packets are counted) -F net/mask show traffic flows in/out of IPv4 network -G net6/mask6 show traffic flows in/out of IPv6 network -l display and count link-local IPv6 traffic (default: off) -P show ports as well as hosts -m limit sets the upper limit for the bandwidth scale -c config file specifies an alternative configuration file -t use text interface without ncurses Sorting orders: -o 2s Sort by first column (2s traffic average) -o 10s Sort by second column (10s traffic average) [default] -o 40s Sort by third column (40s traffic average) -o source Sort by source address -o destination Sort by destination address The following options are only available in combination with -t -s num print one single text output afer num seconds, then quit -L num number of lines to print
相关文章推荐
- Ubuntu实现网络链接设置
- 旧手机利用 第二弹 ——网络摄像头
- 【CCF】无线网络
- JavaWeb——HTTP协议头部分析
- Socket/TCP粘包、多包和少包, 断包
- 黑马程序员----网络编程
- 黑马程序员——TCP协议传输(下)
- HTTPS那些事(一)HTTPS原理
- Linux基本网络知识
- Linux内核工程导论——网络:内核特性
- Linux内核工程导论——网络:Socket
- 使用dup2重定向了标准输出后,使用什么方法恢复对终端的输出?? http://bbs.chinaunix.net/forum.php?mod=viewthread&tid=359433&page=
- 黑马程序员——TCP协议传输(上)
- dup() 和 dup2() http://blog.163.com/crosslandy@126/blog/static/12798713420119710598844/
- 我的openwrt学习笔记(二十九)webserver之 thttpd
- 1.Linux链接概念 http://www.cnblogs.com/itech/archive/2009/04/10/1433052.html
- fstat、stat和lstat 区别(转) http://www.cnitblog.com/guopingleee/archive/2008/11/13/51411.aspx
- 我的openwrt学习笔记(二十八)webserver之lighttpd
- 腾迅股票数据接口 http/javascript
- android 开发--抓取网页解析网页内容的若干方法(网络爬虫)(正则表达式)