早睡早起,方能养生
Sleep early rise early, way to keep healthy

Linux测试网速

super
2020-11-11 18:38
views 3087

查看当前网络流量状态:

 

 使用nload

 

ubuntu安装:

 

sudo apt install nload

 

CentOS安装:

 

sudo yum install nload

 

查看网络流量:

 

nload

 

Incoming也就是进入网卡的流量,Outgoing,也就是从这块网卡出去的流量,每一部分都有下面几个。

 

  • Curr:当前流量
  • Avg:平均流量
  • Min:最小流量
  • Max:最大流量
  • Ttl:总流量
  •  

 nload默认的是eth0网卡,如果你想监测eth1网卡的流量,可以使用下面的命令

 

nload eth1

 

 同时查看多个网卡的流量情况

 

nload -m

 

 

使用speedtest-cli测速:

 

1)安装pip

 

ubuntu:

 

apt-get install python-pip

 

CentOS:

 

yum install python-pip

 

2)安装speedtest-cli
 

pip install speedtest-cli

 

image.png

 

3)使用

 

speedtest-cli

 

image.png

 

4)外网速度测试

 

[root@super ~]# speedtest-cli --list | grep China
29353) wuhan hello 5G (Wuhan, China) [922.18 km]
26352) China Telecom JiangSu 5G (Nanjing, China) [1176.96 km]
51442) China Mobile 5G (ChangZhou, China) [1204.95 km]
17320) China Mobile JiangSu 5G (ZhenJiang, China) [1220.20 km]

 

[root@super ~]# speedtest-cli --server=26352

 

注:--share参数可生成分享图片

 

 



分享
1 条讨论
  • evaluate

    欢迎大家使用我的在线开发工具小站 https://sotool.net

    回复
top