这里提供两种安装方式
一;宝塔面板搭建 HTML5 Speedtest
二;使用 Docker 一键安装 HTML5 Speedtest
宝塔面板搭建 HTML5 Speedtest
首先下载源码:https://github.com/adolfintel/speedtest/
宝塔面板 – 网站 – 新建站点
可以使用域名也可以使用IP,如果使用IP,最好指定端口,然后在面板中放行端口即可;
注意:PHP版本至少要是7.0以上
删除掉新建站点下的所有文件,然后将下载的源码压缩包上传解压至网站根目录
这里需要修改下源码文件,找到 example-singleServer-pretty.html 文件
然后将文件重命名为 index.html
搭建完成,现在可以打开域名或IP即可;
截图:
使用 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
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
Hi to every one, the contents existing at this site
are in fact awesome for people experience, well, keep up the nice work fellows.
Hi there, I desire to subscribe for this website to obtain latest
updates, so where can i do it please help out.
Keep this going please, great job!
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!
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
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.
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
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
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.
It’s impressive that you are getting thoughts
from this paragraph as well as from our discussion made here.
Stunning story there. What occurred after? Thanks!
Check out my page :: 2022
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.
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!
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.