Linux Traffic monitoring Tool iftop Tutorial

Source: Internet
Author: User
Tags chmod centos

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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.