CentOS7_安装iftop

CentOS7 安装 iftop

介绍

iftop 是 linux下网络流量监控工具

cd /app
wget http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.17.tar.gz
tar -xvzf iftop-0.17.tar.gz
  • 安装依赖包
yum install flex byacc  libpcap ncurses ncurses-devel libpcap-devel
  • 编译安装
cd /app
./configure && make && make install
  • 运行程序
iftop

举例



  • 命令说明
语法: iftop -h | [-npblNBP] [-i interface] [-f filter code] [-F net/mask] [-G net6/mask6]  
   -h                  显示本帮助(Help)信息  
   -n                  不进行主机名(hostName)查找  
   -N                  不将端口号(port Number)转换成对应的服务 to services  
   -p                  混合(Promiscuous)模式(显示网络相关的其他主机信息)  
   -b                  不显示流量图形条(Bar)  
   -B                  以字节(Byte)为单位,显示带宽(Bandwidth);默认以比特(bit)显示的  
   -i interface        监控的网卡接口(interface)  
   -f filter code      包统计时,使用过滤码;默认:无,只统计IP包  
   -F net/mask         显示特定IPv4网段的进出流量(Flow);如# iftop -F 10.10.1.0/24  
   -G net6/mask6       显示特定IPv6网段的进出流量(Flow)  
   -l                  显示并统计IPv6本地(Local)链接的流量(默认:关)  
   -P                  显示端口(Port)  
   -m limit            设置显示界面上侧的带宽刻度(liMit)  
   -c config file      指定配置(Config)文件  
   -t                  使用不带窗口菜单的文本(text)接口  
  
   排序:  
   -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  

参考: https://www.cnblogs.com/p0st/p/9450875.html

  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值