安裝speedtest-clispeedtest-cli是一個用(yong)Python編寫(xie)的(de)輕(qing)量級Linux命(ming)令行工具,在Python2.4至(zhi)3.4版本下(xia)均(jun)可運行。它基(ji)于Speedtest.net的(de)基(ji)礎架構來(lai)測量網絡的(de)上(shang)/下(xia)行速率。安裝speedtest-cli很簡(jian)單——只需(xu)要下(xia)載其Python腳本文(wen)件。 # wget //raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py # chmod +rx speedtesti.py # sudo mv speedtest.py /usr/local/bin/speedtest-cli # sudo chown root:root /usr/local/bin/speedtest-cli 使用speedtest-cli測試網速使用speedtest-cli命(ming)令也很簡單,它不需要任何(he)參數即可工(gong)作(zuo)。 # speedtest-cli 輸入這個命令后,它會自動發現離你最近的Speedtest.net服務器(地理距離),然后打印出測試的網絡上/下行速率。 注意:由于(yu)有(you)些測(ce)(ce)試點是國外(wai),需多次測(ce)(ce)試,結果才(cai)正確。
|