CentOS How to install Iftop to view network traffic

Source: Internet
Author: User
Tags ftp centos

There are previously written, but some do not have components can not install, here write down the installation components of the

Install the required components

Yum List | grep LIBP

Yum Install libp*

wget ftp://ftp.lmd.ens.fr/pub/devil/devel/sources/1.2/libpcap-0.9.8.tar.gz

Install 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

Use commands when you are finished installing

Iftop-i eth0-n View the flow of eth0

Exit Press Q

Uninstall: Make clean iftop-0.17

Software iftop for monitoring network card traffic under Linux

Official online said the use of iftop requires Libpcap and libcurses these two packages.

I looked it up with a command.

# Rpm-qa | grep libpcap

libpcap-0.9.4-8.1

Only found this, the lack of libpcap-devel-0.9.4 will continue to install.

Something went wrong: Configure:error:can ' t find pcap.h you ' re not going to get very far without.

I use the Redhat EL5.3 system, from the installation disk to find the Libpcap RPM package, installation and then compile, installation success.

# RPM-IVH libpcap-devel-0.9.4-14.el5.i386.rpm

Libcurses This bag has not been installed, because there is no error in the installation, so for the time being not installed!

Install Iftop:

# wget http://www.ex-parrot.com/%7Epdw/iftop/download/iftop-0.17.tar.gz

# tar ZXVF iftop-0.17.tar.gz

# CD iftop-0.17

#./configure–prefix=/usr/local/iftop && make && make install

#/usr/local/iftop/sbin/iftop//default monitor eth0 network card traffic

Related Article

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.