Linux installation iftop traffic monitoring tool

  

In Unix-like systems, you can use top to view system resources, processes, memory usage and other information. To view network status, you can use tools such as netstat and nmap. To see real-time network traffic, monitor TCP/IP connections, etc., you can use iftop.

1. What is iftop?

iftop is a real-time traffic monitoring tool similar to top.

Official website: http://www.ex-parrot.com/~pdw/iftop/

Second, what is the use of iftop?

iftop can be used to monitor the real-time traffic of the network card (you can specify the network segment), reverse-resolve the IP, display the port information, etc. The details will be explained in the following usage parameters.

Three, install iftop

Installation method 1, compile and install

If you compile and install, you can download the latest source package from iftop official website.

Before installing, you need to have the basic environment required for compilation, such as make, gcc, autoconf, etc. Installing iftop also requires installing libpcap and libcurses.

Installing required dependencies on CentOS:

yum install flex byacc libpcap ncurses ncurses-devel libpcap-devel

Installing required dependencies on Debian:

apt-get install flex byacc libpcap0.8 libncurses5

Download iftop

wget http://www.ex-parrot.com/pdw/iftop/download/iftop-0.17.tar .gz

tar zxvf iftop-0.17.tar.gz

cd iftop-0.17

./configure

make && make install< Br>

Installation method 2: (lazy method, the easiest)

Direct the above steps

CentOS system:

yum install flex byacc libpcap ncurses ncurses -devel

wget ftp://fr2.rpmfind.net/linux/dag/redhat/el5/en/i386/dag/RPMS/iftop-0.17-1.el5.rf.i386.rpm

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

Debian system running: apt-get install iftop

IV, run iftop

Direct Run: iftop

The effect is as follows:


Copyright © Windows knowledge All Rights Reserved