Linux Centos測試服務器上行下行帶寬,服務器帶寬測速


服務器增加了帶寬,總有人要測試一下帶寬是否足夠,測試服務器峰值帶寬工具在github上有工具可以直接使用。

我一般使用這個工具 :https://github.com/sivel/speedtest-cli

 

這是一個python腳本很好用。

安裝 :

pip install speedtest-cli
或者
easy_install speedtest-cli
或者
git clone https://github.com/sivel/speedtest-cli.git 
cd speedtest-cli
python speedtest.py
或者
wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.pychmod + x speedtest-cli

安裝方法多種多樣,自己選一個順眼的用就行了。

以前方便我直接用wget下載就開始使用,不過最近發現wget下載后不能用了報錯

Cannot retrieve speedtest configuration
ERROR: <urlopen error [Errno -2] Name or service not known>\
或者
Retrieving speedtest.net configuration...
Cannot retrieve speedtest configuration
ERROR: timed out

總之就是報錯了,鏈接不上配置服務器,獲取不到配置。然后用pip安裝則可以

先更新一下pip

pip install --upgrade pip

再安裝

pip install speedtest-cli

然后直接運行就行了 

./speedtest-cli

這個軟件功能強大默認會顯示出 ping值 以及上行與下行帶寬,需要更多功能自己查看官方文檔。


免責聲明!

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



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