Mac Pro安裝測速工具speedtest-cli


1、查看本機是否安裝pip工具:

pip3 -V

 

2、通過pip安裝speedtest-cli:

pip3 install speedtest-cli

 

3、接着安裝wget工具

brew install wget

 

4、首先要用wget命令從github上下來Python腳本:

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

 

5、解壓提取下載的文件(master.zip):

unzip master.zip

 

6、進入提取出的目錄speedtest-cli-master

cd speedtest-cli-master

 

7、篩選出洛杉磯的服務器ID:

python3 speedtest.py --list|grep Angeles

 

8、測試到服務器ID的上傳速度與下載速度:

python3 speedtest.py --server 14236

 

——————————————————————————————————————————————————————————————

參考博客:https://linux.cn/article-5626-1.html

via: http://www.tecmint.com/check-internet-speed-from-command-line-in-linux/

作者:Avishek Kumar 譯者:NearTan 校對:wxy

本文由 LCTT 原創翻譯,Linux中國 榮譽推出


免責聲明!

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



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