centos 安装iftop

来源:互联网 发布:windows ad域 编辑:程序博客网 时间:2024/06/05 11:57

官网:

wget http://www.ex-parrot.com/pdw/iftop/download/iftop-0.17.tar.gz



依赖包:

yum install flex byacc  libpcap ncurses ncurses-devel libpcap-devel


解压:

tar -zxvf iftop-0.17.tar.gz


进入目录:

cd iftop-0.17


检测:

./configure


编译安装:

make && make install


命令:iftop 

# iftop --help

iftop: unknown option --iftop: display bandwidth usage on an interface by hostSynopsis: iftop -h | [-npbBP] [-i interface] [-f filter code] [-N net/mask]   -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   -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 network   -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



0 0
原创粉丝点击