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-
centos下 iftop安装
最新推荐文章于 2024-08-14 13:45:50 发布