CentOS6.5安装iftop

iftop这个小工具是Linux和unix下的top命令升级版,功能相对较强,界面易懂。今天安装了CentOS6.5的最新版,装个小工具检查下系统运行性能。php

官网:http://www.ex-parrot.com/~pdw/iftop/html

但如今进入到iftop的官网查看仍是跟之前的介绍同样 目前最稳定的版本仍是0.17帮 注:linux

Download

The latest stable version of iftop is 0.17. Older and newer (pre-release) version are available from the downloads directory. I am always keen to hear of any problems with the latest pre-release versions (that's what they're there for) so please do try them. N.B. these are versioned as pre-releases, so 0.17 is the final release, and comes after 0.17pre*

Download: iftop-0.17.tar.gz or iftop-1.0pre3.tar.gz.

If you wish to be notified of new releases of iftop then please subscribe to the Freshmeat project, or the mailing list. If you're using Freshmeat, please consider adding a rating or comment to the project.

  因此选择0,。17版本 安装方式固然有两种 源码和rpm包。(Centos 的yum源里默认没有iftop这个工具)ide

固然在安装前须要几个依赖包的支持,flex byacc   ncurses ncurses-devel  libpcap 工具

上面两个安装包有版本要求须要是libpcap-0.9.4-14.el5.x86_64.rpm   0.9.4版本的libpcap包 固然若是你是x86的系统须要安装i386的rpm包 性能

关于如何下载到这个rpm包 你能够用Google搜索引擎 去找到相应的源下载地址。flex

我贴上一个 i386的下载地址列表 http://rpm.pbone.net/index.php3/stat/4/idpl/15976291/dir/scientific_linux_5/com/libpcap-0.9.4-15.el5.i386.rpm.html搜索引擎

 

安装libpcapspa

首先查看是否已经有高版本的libpcap.net

rpm -qa | grep libpcap

若是有能够运行 rpm -ef libpcap

再次确认rpm -qa | grep libpcap

没有就能够安装了

rpm -ivh libpcap-0.9.4-15.el5.i386.rpm

 

安装完成后就能够安装iftop了

若是有rpm版的直接运行

rpm -ivh iftop-0.17-1.el5.rf.i386.rpm

安装成功后就能够运行 iftop命令了

若是是源码包

 

tar zxvf iftop-0.17.tar.gz

 

cd iftop-0.17

 

./configure

 

make && make install

相关文章
相关标签/搜索