centos下 iftop安装

1,
[root@localhost nginx]# yum install flex byacc  libpcap ncurses ncurses-devel libpcap-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.ustc.edu.cn
 * extras: centos.ustc.edu.cn
 * updates: mirrors.163.com
Package ncurses-5.9-13.20130511.el7.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package byacc.x86_64 0:1.9.20130304-3.el7 will be installed
---> Package flex.x86_64 0:2.5.37-

2,
[root@localhost soft]# wget wget http://www.ex-parrot.com/pdw/iftop/download/iftop-0.17.tar.gz
--2015-06-09 17:30:41--  http://wget/
Resolving wget (wget)... failed: Name or service not known.
wget: unable to resolve host address ‘wget’
--2015-06-09 17:30:43--  http://www.ex-parrot.com/pdw/iftop/download/iftop-0.17.tar.gz
Resolving www.ex-parrot.com (www.ex-parrot.com)... 93.93.130.44
Connecting to www.ex-parrot.com (www.ex-parrot.com)|93.93.130.44|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 160381 (157K) [application/gzip]
Saving to: ‘iftop-0.17.tar.gz’

100%[=========================================================================================================================================>] 160,381     97.3KB/s   in 1.6s   

2015-06-09 17:30:47 (97.3 KB/s) - ‘iftop-0.17.tar.gz’ saved [160381/160381]

3,
[root@localhost soft]# tar -zxvf iftop-0.17.tar.gz 
iftop-0.17/
iftop-0.17/aclocal.m4
iftop-0.17/addr_hash.c
iftop-0.17/addr_hash.h
iftop-0.17/addrs_dlpi.c
iftop-0.17/addrs_ioctl.c
iftop-0.17/AUTHORS
iftop-0.17/bootstrap
iftop-0.17/cfgfile.c
4,
[root@localhost iftop-0.17]# ./configure 
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes

6,
[root@localhost iftop-0.17]# make && make install
make  all-recursive
make[1]: Entering directory `/root/soft/iftop-0.17'
Making all in config
make[2]: Entering directory `/root/soft/iftop-

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值