linux系统宽带测速,Linux下网速测试Speedtest和网络带宽查看iftop详解

Speedtest工具介绍:

Speedtest强大而知名的全球宽带网络速度测试网站,采用Flash载入界面,Alexa世界排名非常高,Speedtest.net在全球有数百个测试节点,国内有测速节点几十个。

官网地址:http://www.speedtest.net/

下载使用

#git clone https://github.com/sivel/speedtest-cli.git

#wget https://github.com/sivel/speedtest-cli/archive/master.zip

# cd speedtest-cli/

# ./speedtest_cli.py

Retrieving speedtest.net configuration...

Retrieving speedtest.net server list...

Testing from Hangzhou Alibaba Advertising Co.,Ltd. (101.201.234.94)...

Selecting best server based on latency...

Hosted by China Telecom ZheJiang Branch (Hangzhou) [4.87 km]: 22.808 ms

Testing download speed........................................

Download: 61.39 Mbit/s //下载速度

Testing upload speed..................................................

Upload: 1.16 Mbit/s //上传速度

#./speedtest_cli.py --share 测试完毕之后生成一张图片

Share results: http://www.speedtest.net/result/5558273557.png

48a26806f947570eae87fa578af39c59.png

二.iftop工具介绍

安装依赖

#yum install -y flex byacc libpcap ncurses ncurses-devel libpcap-devel

yum安装软件:

#Yum install -y iftop yum安装

第三方安装:

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

# ./configure && make && make install

# iftop

3fd7036b76db0782f8c747e9a096458d.png

Iftop图解:

第一行:带宽显示

中间部分:外部连接列表,即记录了哪些ip正在和本机的网络连接

中间部分右边:实时参数分别是该访问ip连接到本机2秒,10秒和40秒的平均流量

=>代表发送数据,<= 代表接收数据

底部三行:表示发送,接收和全部的流量

底部三行第二列:为你运行iftop到目前流量

底部三行第三列:为高峰值

底部三行第四列:为平均值

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值