Redhat 安装 iftop

发现团队的一台Linux主机在某一天突然走了20G流量!!!

听说iftop这个工具不错,决定给服务器装一个。

1.  iftop 至少需要两个包

        libpcap(抓包用)

        ncurses(显示用,比如著名的"clear"命令就在这个包中)

2. 源代码

    http://www.tcpdump.org/

    http://ftp.gnu.org/pub/gnu/ncurses/

    然后  ./configure  -->  make  --> make install

3. 最后到http://www.ex-parrot.com/~pdw/iftop/

    下载iftop,同样是安装三部曲。

可能碰到的问题:

 checking POSIX threads usability… configure: error: it fails.  We probably guessed the wrong CFLAGS.

      很可能是找不到libpcap.so文件,到/usr/lib下面,发现有libpcap.so.0  libpcap.so.0.9.5

      证明是有这个版本的,但是不被识别,做个软连接  ln -s libpcap.so.9.5 libpcap.so

      就OK啦!而且换版本也是很方便的。

参考链接:

使用说明:

http://www.vpser.net/manage/iftop.html

http://www.tthen.com/archives/89

http://blog.csdn.net/zcatlinux/article/details/58964

Linux软、硬链接介绍

http://www.cnblogs.com/itech/archive/2009/04/10/1433052.html

posted @ 2012-03-07 21:04  wpjsolo  阅读(2442)  评论(0编辑  收藏  举报