Git Product home page Git Product logo

speedtest-n's Introduction

Speedtest-N

为什么叫Speedtest-N,因为是模仿了Speedtest.Net皮肤

基于LibreSpeed和speedtest-x

本库是东凑西拼的屎山和bug堆起来的,能跑起来是个奇迹。

支持单线程,多线程

支持测速记录查询

使用方法

面板部署:

下载本仓库并解压到网站目录。

1、访问 {域名}/index.html 进行测速

2、打开 {域名}/results.html 查看测速记录

3、results.html页面提示接口报错,是因为没有权限。请给予目录755权限(宝塔所有者权限是www非root)

Tips:backend/config.php 中可定义一些自定义配置:
MAX_LOG_COUNT = 100:最大可保存多少条测速记录
IP_SERVICE = 'ip.sb':使用的 IP 运营商解析服务(ip.sb 或 ipinfo.io)
SAME_IP_MULTI_LOGS = false:是否允许同一IP记录多条测速结果

非面板部署:

yum install httpd php git -y
git clone https://github.com/youheiss/Speedtest-N.git
cd Speedtest-N/
cp -R backend/ chartjs/ *.html *.js /var/www/html/
cd /var/www/html/
chown -R apache *
systemctl start httpd  #重启httpd服务

Docker镜像部署

作者:千牛
部署教程:https://hostloc.com/thread-1002817-1-1.html

其他

正常部署是没有任何问题的,如果出错了就是你的问题 image image

参考的库(我抄袭的库)

https://github.com/librespeed/speedtest

https://github.com/BadApple9/speedtest-x

speedtest-n's People

Contributors

zenecho avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.