1、登入伺服器的Home目錄下,下載speedtest.py
sudo wget https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
2、加上執行權限,需要有python環境支援下執行:
(相關學習影片推薦: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
最好選擇網路空閒時段再測試。它會自動發現離你最近的Speedtest.net伺服器(地理距離),然後顯示測試的網路上/下行速率。
相關教學推薦:linux教學
#以上是如何測試linux伺服器的上傳下載速度的詳細內容。更多資訊請關注PHP中文網其他相關文章!