Linux命令列測試網速

2021-08-23 12:20:55 字數 1067 閱讀 2570

很多時候我們需要測試linux伺服器的上行和下行寬頻。在可用於測試寬頻速度的**中,speedtest.net也許是使用最廣泛的應用「之一」。 

speedtest.net提供了乙個命令列版本——speedtest-cli。下面將向你演示如何在linux的命令列中使用speedtest-cli來測試寬頻連線速度。

wget

chmod a+rx speedtest.py

mv speedtest.py /usr/local/bin/speedtest-cli

chown root:root /usr/local/bin/speedtest-cli

speedtest-cli

二、使用speedtest-cli測試網速 

使用speedtest-cli命令也很簡單,它不需要任何引數即可工作。

[root@localhost temp]# speedtest-cli

輸入這個命令後,它會自動發現離你最近的speedtest.net伺服器(地理距離),然後列印出測試的網路上/下行速率。

[root@localhost temp]# speedtest-cli 

retrieving speedtest.net configuration… 

retrieving speedtest.net server list… 

testing from china telecom (219.135.214.145)… 

selecting best server based on latency… 

hosted by ctm internet services (macau) [106.48 km]: 55.974 ms 

testing download speed…………………………………. 

download: 3.15 mbit/s 

testing upload speed………………………………………….. 

upload: 0.58 mbit/s

Linux命令列測試網速

很多時候我們需要測試linux伺服器的上行和下行寬頻。在可用於測試寬頻速度的 中,speedtest.net也許是使用最廣泛的應用 之一 speedtest.net提供了乙個命令列版本 speedtest cli。下面將向你演示如何在linux的命令列中使用speedtest cli來測試寬頻連線速...

windows命令列下測試網速和檢視公網IP的方法

pip install speedtest cli測速,其實在這裡也可以看到自己的公網ip speedtest cli no download 只顯示上傳速度 speedtest cli help 檢視所有命令 1 檢視公網ip 方法一 curl cip.cc 可能會出現亂碼,但是還可以清楚的看到i...

Linux命令測試網速 頻寬

1.依次輸入如下4條命令 wget chmod rx speedtest.py sudo mv speedtest.py usr local bin speedtest cli sudo chown root root usr local bin speedtest cli 2.輸入測試命令 spe...