#-------------------网络流量监控工具iftop---------------#
#! /bin/sh
#1.首先安装依赖关系包
yum install flex byacc libpcap ncurses ncurses-devel libpcap-devel -y
#2.下载iftop工具
wget http://www.ex-parrot.com/pdw/iftop/download/iftop-0.17.tar.gz
#3.解压安装iftop
tar zxvf iftop-0.17.tar.gz && cd iftop-0.17
./configure --prefix=/usr/local/iftopd && make && make install
#4.运行iftop
cd /usr/local/iftopd/sbin/
./iftop
时间: 2024-10-17 07:24:06