在 CentOS 中快速安装 iftop 工具指南
iftop是linux下的一个流量监控工具,用于查看实时网络流量。
官网:http://www.ex-parrot.com/pdw/iftop/
1、安装必须软件包
yum install libpcap libpcap-devel ncurses ncurses-devel
yum install gcc gcc-c++ autoconf automake
2、安装iftop
cd /tmp
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
3、使用
(1)iftop
直接启动iftop。
(2)iftop -i eth0 -n
监测网卡eth0,直接显示IP。
4、常用参数
进入iftop后可按h查看帮助。
Host display:
n - 切换DNS解析,显示IP或主机名
s - 切换显示/隐藏本机host信息
d - 切换显/隐藏示远程主机host信息
t - 一行显示模式(默认为两行)
Port display:
N - 切换打开/关闭端口服务解析
S - 切换显示/隐藏原主机端口
D - 切换显示/隐藏远程主机端口
p - 切换显示/隐藏端口信息
Sorting:
1/2/3 - 按1或2或3可以根据右侧显示的三列流量数据进行排序
< - 按照原主机名排序 > - 按远端主机名排序
o - 固定只显示当前的连接
General:
P - 暂停/开始
h - 切换显示help
b - 切换显示流量条
B - 切换计算2秒或10秒或40秒内的平均流量
T - 切换是否显示每个连接的总流量
j/k - 上下滚动显示
L - 切换流量条刻度(linear scale and logarithmic scale)
参考资料:
http://www.osyunwei.com/archives/1211.html
下一篇: iftop 命令
推荐阅读
-
在 CentOS 中快速安装 iftop 工具指南
-
在CentOS中快速安装iftop工具实时监控网络流量
-
在CentOS中,如何快速查看网络接口的实时流量: 使用iptraf命令指南
-
如何在CentOS上快速安装实时网络流量监控工具iftop
-
在 Red Hat 7.9 系统中安装并详细解析 iftop 工具的步骤与用法
-
在Linux中,使用rpm和tar工具轻松管理软件:安装与卸载指南
-
超详尽指南:在VMware中安装CentOS 7的步骤详解
-
在Windows系统中轻松安装Wox(超级便捷的快速启动工具)指南
-
在 CentOS 7 上快速简易地安装与搭建 GitLab 平台,并进行汉化配置指南
-
在Java中,如何快速实现XML到JSON的转换? - 解析与生成指南:关键步骤包括解析XML、构造数据模型、转化为JSON。讲解如下:首先,利用JDOM库读懂XML文档,提取元素和属性;接着,基于这些信息设计适当的数据结构(如树形或网状结构);最终,运用Jackson库将数据结构顺利转存为JSON格式。同时,我们也讨论了何时选用JDOM和Jackson这类工具辅助转换过程。