安装iftop流量查看
官方网站是 http://www.ex-parrot.com/~pdw/iftop/download/
最新版本是1.0版本 http://www.ex-parrot.com/~pdw/iftop/download/iftop-1.0pre1.tar.gz
安装命令:
yum install libpcap* -y
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
在运行./configure 的时候出现了错误:
checking for a curses library containing mvchgat… none found
configure: error: Curses! Foiled again!
(Can’t find a curses library supporting mvchgat.)
Consider installing ncurses.
解决方法:
安装ncurses开发包
CentOS :
yum install ncurses-devel
Debian:
apt-get install libncurses5-dev
开发包完成以后我们从新运行 ./configure 配置和生成源代码。
安装完毕以后我们使用命令iftop查看。

分类: 日常记事