目录
docker 布署
布署云端
docker布署
云端放置于已有容器里
librespeed/speedtest: Self-hosted Speedtest for HTML5 and more. Easy setup, examples, configurable, mobile friendly. Supports PHP, Node, Multiple servers, and more (github.com)
docker 布署
获取源码,放于194 : /home/java/speedtest/speedtest
构建镜像: docker build -t speed:v1.0 .
docker run -itd --name speedtest -p 4080:80 speed:v1.0
firewall-cmd --zone=public --add-port=4080/tcp --permanent
firewall-cmd --reload
布署云端
docker布署
222.48: /home/dualven/speedtest
docker load -i speed.tar
docker run -itd --name speedtest -p 9138:80 -v /home/dualven/speedtest/www:/var/www/html speed:v1.0
类似下面的问题。怀疑与机器内核有关系
AH00141: Could not initialize random number generator
云端放置于已有容器里
LibreSpeed Example
CCS: /docker/nginx/wifi/gbcom/speed
里放置原/var/www/html里的文件