Linux流量监控工具 (实时)-适用于centos

Linux流量监控工具 (实时)-适用于centos

在类Unix系统中可使用top查看系统资源、进程、内存占用等信息。查看网络状态可使用netstat、nmap等工具。若要查看实时的网络流量,监控TCP/IP链接等,则可使用iftophtml

安装centos

CentOS上安装所需依赖包:网络

yum install flex byacc  libpcap ncurses ncurses-devel libpcap-devel工具

下载iftopflex

wget http://www.ex-parrot.com/pdw/iftop/download/iftop-0.17.tar.gz.net

tar zxvf iftop-0.17.tar.gzhtm

cd iftop-0.17vps

./configure进程

make && make install内存

运行iftop相关参数及说明

直接运行: iftop

一、iftop界面相关说明

界面上面显示的是相似刻度尺的刻度范围,为显示流量图形的长条做标尺用的。

中间的<= =>这两个左右箭头,表示的是流量的方向。

TX:发送流量 RX:接收流量 TOTAL:总流量 Cumm:运行iftop到目前时间的总流量 peak:流量峰值 rates:分别表示过去 2s 10s 40s 的平均流量

相关文章
相关标签/搜索