朱纯树博客
VPS测评推荐网站
cloudacead cloudacead

一键安装HTML5 Speedtest测试服务器到本地速度

这里提供两种安装方式
一;宝塔面板搭建 HTML5 Speedtest
二;使用 Docker 一键安装 HTML5 Speedtest

宝塔面板搭建 HTML5 Speedtest
首先下载源码:https://github.com/adolfintel/speedtest/
2019102301.png
宝塔面板 – 网站 – 新建站点
可以使用域名也可以使用IP,如果使用IP,最好指定端口,然后在面板中放行端口即可;
注意:PHP版本至少要是7.0以上
2019102302.png
删除掉新建站点下的所有文件,然后将下载的源码压缩包上传解压至网站根目录
这里需要修改下源码文件,找到 example-singleServer-pretty.html 文件
然后将文件重命名为 index.html
2019102303.png
搭建完成,现在可以打开域名或IP即可;
截图:
2019102304.png

使用 Docker 一键安装 HTML5 Speedtest
首先安装 Docker

curl -sSL https://get.docker.com/ | sh
systemctl start docker
systemctl enable docker

安装HTML5 Speedtest

docker run -d -p 6688:80 ilemonrain/html5-speedtest:alpine

参数详解:

-t:启动后显示日志,可用Ctrl+C转入后台运行
-d:后台模式启动
-p 6688:80:镜像映射端口,修改6688为任意端口即可
如果打不开,需要宝塔面板或VPS控制后台放行6688端口

搭建完成,打开 http://你VPS的IP:6688 即可

如果CentOS 7打不开,需要打开防火墙端口,或者关掉防火墙

打开6688端口

firewall-cmd --zone=public --add-port=6688/tcp --permanent

关闭防火墙

systemctl stop firewalld.service
systemctl disable firewalld.service

截图:
2019102305.png

转载至:https://sunpma.com/446.html

赞(0) 打赏
未经允许不得转载:VPS测评推荐网站 - 朱纯树博客 » 一键安装HTML5 Speedtest测试服务器到本地速度

评论 30

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #30

    I do believe all the concepts you’ve introduced in your post.

    They are very convincing and will certainly work. Still,
    the posts are too brief for newbies. May you please prolong them a bit from subsequent time?
    Thank you for the post.

    my page – tracfone special coupon 2022

  2. #29

    Hi to every one, the contents existing at this site
    are in fact awesome for people experience, well, keep up the nice work fellows.

    paca-mania.com7个月前 (09-10)回复
  3. #28

    Hi there, I desire to subscribe for this website to obtain latest
    updates, so where can i do it please help out.

  4. #27

    Keep this going please, great job!

  5. #26

    This is a really good tip particularly to those fresh to the blogosphere.
    Simple but very accurate information… Thank you for sharing this one.
    A must read article!

    tinyurl.com7个月前 (09-04)回复
  6. #25

    This article provides clear idea designed for the new users of blogging, that in fact how to do blogging
    and site-building.

    Feel free to visit my web page coupon

    coupon7个月前 (09-02)回复
  7. #24

    I all the time used to read paragraph in news papers but now as I am a user of
    net so from now I am using net for content, thanks to web.

  8. #23

    Excellent blog here! Also your website loads up
    fast! What web host are you using? Can I get your affiliate
    link to your host? I wish my site loaded up as fast as yours lol

    tinyurl.com7个月前 (08-18)回复
  9. #22

    Hello! Would you mind if I share your blog with my facebook group?
    There’s a lot of people that I think would really appreciate your
    content. Please let me know. Thanks

    tinyurl.com7个月前 (08-16)回复
  10. #21

    I’ve learn several good stuff here. Certainly price bookmarking for revisiting.
    I wonder how much effort you place to make this type of great informative
    site.

    tinyurl.com7个月前 (08-15)回复
  11. #20

    It’s impressive that you are getting thoughts
    from this paragraph as well as from our discussion made here.

    tinyurl.com7个月前 (08-14)回复
  12. #19

    Stunning story there. What occurred after? Thanks!

    Check out my page :: 2022

    20228个月前 (08-11)回复
  13. #18

    What’s up to every , because I am genuinely eager of reading
    this web site’s post to be updated regularly. It includes nice stuff.

    tinyurl.com8个月前 (08-10)回复
  14. #17

    This is a very good tip especially to those new to the blogosphere.
    Simple but very precise info… Many thanks for
    sharing this one. A must read article!

  15. #16

    I am not positive where you’re getting your information, but great
    topic. I needs to spend some time learning more or understanding more.
    Thank you for great information I used to be looking for this
    info for my mission.