linux与测试程序下载,Linux测试上行和下载速率
下載安裝speedtest-cli測試工具
方法一:
pip3 install speedtest-cli
方法二:
wget https://github.com/sivel/speedtest-cli/archive/master.zip
unzip master.zip
cd speedtest-cli-master/
chmod +x speedtest_cli.py
執行speedtest.py進行網速測試
? 首先我們采用pip的方式進行安裝,我們需要進入python安裝文件包的路徑。
pip3 install speedtest-cli --upgrade
Requirement already up-to-date: speedtest-cli in /usr/local/python3/lib/python3.6/site-packages (2.0.2)
? 從上面我們可以找到python軟件包的安裝路徑,然后進入此路徑。
cd /usr/local/python3/lib/python3.6/site-packages/
chmod +x speedtest.py
./speedtest.py --bytes
Retrieving speedtest.net configuration...
Testing from International Pioneering Park (114.114.114.114)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Beijing Telecom (Beijing) [1.69 km]: 3.782 ms
Testing download speed................................................................................
Download: 1.09 Mbyte/s
Testing upload speed................................................................................................
Upload: 1.08 Mbyte/s
命令參數
speedtest.py --bytes以字節計算的方式來測試上下行速度
speedtest.py --share將速度測試的結果生成一張圖片的連接,便于你分享
speedtest.py --simple只顯示ping和上下行速度
speedtest.py --list 列出speedtest.net所有的服務器距離你的物理距離,單位是千米(km) ? 由此我們可以測試出上傳和下載的速率。
總結
以上是生活随笔為你收集整理的linux与测试程序下载,Linux测试上行和下载速率的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: JAVA电机控制程序_步进电机控制时序
- 下一篇: 洛谷P5613 黑蚊子多