环 境
Centos 7安装speedtest-cli工具
在安装speedtest-cli之前,我们需要安装先安装python3-pip包管理器,然后通过pip安装speedtest-cli工具。[root@localhost ~]# yum -y install python3-pip
安装成功之后,我们可以用pip3命令安装speedtest-cli:
[root@localhost ~]# pip3 install speedtest-cli
通过speedtest cli检测网络
[root@localhost ~]# speedtest-cli
Retrieving speedtest.net configuration...
Testing from China Telecom (*.*.*.*)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by China Telecom JiangSu 5G (Lianyungang) [196.15 km]: 31.424 ms
Testing download speed................................................................................
Download: 47.64 Mbit/s
Testing upload speed......................................................................................................
Upload: 94.56 Mbit/s
总 结
在本文中我们将使用一个名为speedtest-cli的命令行工具来测试网速。它是用Python语言编写的工具,系统通过向speedtest.net网站上传和下载数据来测试带宽。
如果喜欢这位作者的文章,点点在看支持一下
END
官方站点:www.linuxprobe.com
Linux命令大全:www.linuxcool.com
Linux系统下载站:www.linuxdown.com
刘遄老师QQ:5604922
Linux技术交流群:193666693
(新群,火热加群中……)
书籍在线学习(电脑阅读效果佳):
http://www.linuxprobe.com/chapter-00.html
想要学习Linux系统的读者可以点击按钮来了解书籍《Linux就该这么学》,同时也非常适合专业的运维人员阅读,成为辅助您工作的高价值工具书!