Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install the traffic monitoring tool iftop in Linux

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

In this article, the editor introduces in detail "how to install the traffic monitoring tool iftop in Linux". The content is detailed, the steps are clear, and the details are handled properly. I hope that this article "how to install the traffic monitoring tool iftop in Linux" can help you solve your doubts.

The iftop command can be used to monitor the real-time traffic of the network card (you can specify a network segment), reverse parse IP, display port information, and so on.

Install iftop compilation installation

If you use compilation and installation, you can download the latest source code package from the iftop official website. The environment required for basic compilation, such as make, gcc, autoconf, etc., needs to be installed before installation. Installing iftop also requires the installation of libpcap and libcurses.

Install the required dependency packages on CentOS:

Yum-y install flex byacc libpcap ncurses ncurses-devel libpcap-devel

Install the required dependency packages on Debian:

Apt-get install flex byacc libpcap0.8 libncurses5

Installation steps

Wget http://www.ex-parrot.com/pdw/iftop/download/iftop-0.17.tar.gz # download installation package tar zxvf iftop-0.17.tar.gz # extract cd iftop-0.17./configure-- prefix=/usr/local/iftop # configure installation directory make & & make install # compile and install

After the installation is completed, directly use / usr/local/iftop/sbin/iftop to start the iftop program to check the traffic usage. If you want to use iftop to directly open the program, you need to add the iftop program to the environment variable.

Install the iftop tool using yum

CentOS system: it is easy to install using yum, as long as it is executed directly.

Yum install iftop-y

Command is fine, if there is no problem, the system will automatically perform the installation, but if you use yum, you may not be able to install it, so you need to use compilation to install it.

The Debian system runs:

Apt-get install iftop runs iftop

Run directly: iftop (must be run as root)

The effect is as follows:

Monitor a network card

Iftop-I eth0-n

At the same time, it shows what the service is.

Iftop-I eth0-n-P read here, this article "how to install traffic monitoring tool iftop in Linux" has been introduced. If you want to master the knowledge points of this article, you still need to practice and use it yourself. If you want to know more about related articles, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report