linux網速測試


linux網速測試

2019年03月04日
系統版本:CentOS Linux release 7.5.1804

參考文檔

https://jingyan.baidu.com/article/f006222814b0eefbd2f0c873.html


linux命令行界面用 speedtest 測網速,linux版本是基於python,網站是 speedtest.net

因為是下載githup版本庫上的軟件,linux上要安裝git客戶端
# yum -y install git

使用git下載測試軟件
# git clone https://github.com/sivel/speedtest-cli.git

運行speedtest.py
# ./speedtest-cli/speedtest.py

能顯示公網IP地址,又能顯示上傳下載的速度,多測試幾次取平均值會使結果更准確。

[root@localhost ~]# ./speedtest-cli/speedtest.py 
Retrieving speedtest.net configuration...
Testing from China Mobile Guangdong (x.x.x.x)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by China Mobile Group Beijing Co.Ltd (Beijing) [1.67 km]: 18.362 ms
Testing download speed................................................................................
Download: 174.73 Mbit/s
Testing upload speed................................................................................................
Upload: 178.91 Mbit/s
[root@localhost ~]# 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM