linux实时流量工具iftop 和 linux服务器测速工具speedtest-cli

本文介绍如何使用iftop进行Linux系统的实时流量监控,并通过speedtest-cli工具测试服务器带宽速度的方法。文中提供了iftop的安装步骤及使用命令,同时给出了speedtest-cli的部署过程与使用技巧。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1、linux实时流量工具iftop
常用两个方法:直接命令查看、安装个iftop查看;
直接命令查看
watch cat /proc/net/dev

安装iftop然后再查看
#yum  -y install iftop
安装完成直接运行下方命令即可看到实时流量
#iftop

######################
安装epel以此解决找不到iftop
cd /usr/local/src
wget http://mirrors.sohu.com/fedora-epel/6/i386/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm
yum clean all
yum makecache

2、linux服务器带宽测速speedtest-cli
通过全国多节点服务器测试自己服务器的带宽速度!
源码:https://github.com/sivel/speedtest-cli

安装部署及测试

#cd /home/setup  #下载到这个目录
#wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py  #下载
#chmod +x speedtest-cli  #授权
#./speedtest-cli -h                 #帮助
#./speedtest-cli --list | grep China   #查询国内测试服务器
#./speedtest-cli --server=4515 --share  #4515 是服务ID
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值