标准安装

直接下载源码

git clone https://github.com/librespeed/speedtest

根据 直接访问这几个文件就可以进行测速了

example-multipleServers-full.html
example-multipleServers-pretty.html
example-singleServer-basic.html
example-singleServer-chart.html
example-singleServer-customSettings.html
example-singleServer-full.html
example-singleServer-gauges.html
example-singleServer-pretty.html
example-singleServer-progressBar.html

简单安装

  • 上面是安装完全体的版本
  • 实际情况下只需要下载几个文件就行
dst_file=example-singleServer-gauges.html

mkdir speedtest
cd speedtest

wget https://github.com/librespeed/speedtest/raw/master/speedtest.js
wget https://github.com/librespeed/speedtest/raw/master/speedtest_worker.js
wget https://github.com/librespeed/speedtest/raw/master/$dst_file -O index.html

mkdir backend
cd backend
wget https://github.com/librespeed/speedtest/raw/master/backend/empty.php
wget https://github.com/librespeed/speedtest/raw/master/backend/getIP.php
wget https://github.com/librespeed/speedtest/raw/master/backend/garbage.php
 
  • 一般情况下建议使用 example-singleServer-gauges.html
  • example-singleServer-gauges.html默认不会上传测试数据

Snipaste_2021-02-20_15-28-00.png

Last modification:February 20, 2021
如果觉得我的文章对你有用,请随意赞赏