Centos compilation and installation of the latest iftop port traffic monitoring tool
Iftop can monitor the real-time traffic on the server port. Therefore, you can install iftop on the server by compiling and installing it.
The installation procedure is as follows:
1. Download the source code package iftop-1.0pre4.tar.gz:
# Wgethttp: // www.ex-parrot.com /~ Pdw/iftop/download/iftop-1.0pre4.tar.gz
2. Go to the directory/usr/soft/where the source code package is located and decompress the package:
# Tar-xvf iftop-1.0pre4.tar.gz
3. Go to the decompressed iftop directory:
# Cdiftop-1.0pre4
# Ls // view the directory content
4. Start compilation and installation:
1) install iftop in the/usr/soft/iftop/directory:
[Root @ CentOS iftop-1.0pre4] #./configure -- prefix =/usr/soft/iftop/
2) use # make and # make install to perform subsequent installation.
3) after the installation is complete, you can use the # iftop command (with relevant parameters) to monitor traffic.
Compile and install:
Prerequisites: the compiling and installation environment (development tools: gcc; perl; python; glibc; gtk; make; automake) exists ). 1 package software with tar.gz and tar.bz2, mostly through
#./Configure
# Make
# Make install.
2) some software is direct
# Make;
# Make install.
3) We can use
#./Configure -- help to view the software configuration functions.
4) Most software provides the./configure configuration software. A few do not.
./Configure, just make; make install.
5 ). one of the most important parameters of/configure is -- prefix. With the -- prefix parameter, we can specify the software installation directory. When we don't need this software, just delete the Software Directory.
#./Configure -- prefix =/usr/soft/iftop // specify the installation directory
For compilation and installation:
Other references
Http://www.vpser.net/manage/iftop.html