traffic monitoring command redhat 7.6, software (2) iftop monitor network traffic in real-time IP

1. Install iftop, first install flex, bison, libpcap compile and install

Two red arrows extracting files

tar -zxvpf iftop-0.16.tar.gz

Level -zxvpf libpcap-Lk4k0ktrkgsh

 

 

  libpcap compile and install to the specified directory

./configure  --prefix=/usr/local/libpcap    

  iftop compile and install libpcap related to the specified directory installation directory because libpcap not installed by default, you need to specify the directory

./configure  --prefix=/usr/local/iftop     --with-libpcap=/usr/local/libpcap  

After installing, the compiler make; make install

 

 Enter / usr / local / iftop / sbin / directory, execute the ./iftop -i ens33 need to specify the name of the NIC

 

 

Here you can view real-time network traffic monitor network traffic in real-time IP

 

Guess you like

Origin www.cnblogs.com/MOMING95/p/11764389.html