Iftop script installation, download script to the/usr/local/sbin/directory:
Iftop script reference adsorption pieces! Rename to: iftop.sh
Note: Permissions must be granted to run:
#chmod 755 iftop.sh or #chmod u+x,g+x,o+x iftop.sh
#./iftop.sh or SH iftop.sh
-------------------------------------------------------------------------------------
You can use top to view system resources, processes, memory footprint, and so on in Linux systems. View network status You can use tools such as Netstat, nmap, and so on. To view real-time network traffic, monitor TCP/IP connections, and so on, you can use Iftop. Iftop can be used to monitor the real-time traffic of the network card (you can specify the network segment), the reverse resolution of IP, display port information, and so on, detailed will be described in the use of parameters later.
Install iftop below with CENTOS-6.3-I386-BIN-DVD1
Installation Method 1, compiling installation
If the installation can be compiled to iftop official website Download the latest source package.
Before installation, you need to have the necessary environment for basic compilation, such as Make, GCC, autoconf, etc. Installation of Iftop also requires the installation of Libpcap and libcurses.
To install the required dependent packages on the CentOS:
#yum Install Flex BYACC libpcap ncurses ncurses-devel libpcap-devel
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
Installation Method 2, RPM package installation
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
Run Iftop
Run directly: #iftop
The effect of the following figure: