1、登錄到服務(wù)器的home目錄下,下載speedtest.py
sudo?wget?https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
2、加上執(zhí)行權(quán)限,需要有python環(huán)境支持下執(zhí)行:
(相關(guān)學(xué)習(xí)視頻推薦:linux視頻教程)
sudo?chmod?755?speedtest.py ./speedtest.py
[wuyun@localhost?home]$?./speedtest.py? Retrieving?speedtest.net?configuration... Testing?from?China?Telecom?(219.131.192.35)... Retrieving?speedtest.net?server?list... Selecting?best?server?based?on?ping... Hosted?by?CTM?Internet?Services?(Macau)?[8.74?km]:?43.531?ms Testing?download?speed................................................................................ Download:?74.49?Mbit/s Testing?upload?speed................................................................................................ Upload:?80.77?Mbit/s
最好選擇網(wǎng)絡(luò)空閑時(shí)段再測(cè)試。它會(huì)自動(dòng)發(fā)現(xiàn)離你最近的Speedtest.net服務(wù)器(地理距離),然后顯示測(cè)試的網(wǎng)絡(luò)上/下行速率。
?相關(guān)教程推薦:linux視頻教程
? 版權(quán)聲明
文章版權(quán)歸作者所有,未經(jīng)允許請(qǐng)勿轉(zhuǎn)載。
THE END
喜歡就支持一下吧
相關(guān)推薦