Skip to content

Instantly share code, notes, and snippets.

@kikohz
Created April 17, 2020 12:51
Show Gist options
  • Save kikohz/43e8e5904779f00e95a29ee7272cf2f3 to your computer and use it in GitHub Desktop.
Save kikohz/43e8e5904779f00e95a29ee7272cf2f3 to your computer and use it in GitHub Desktop.
一键安装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 即可
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment