LibreSpeed是一款快速部署,可以用于测试网速的工具,特别是在局域网环境中,用来测试网络设备带宽是否达标非常好用。代码主要由一组html、js和php构成。下面以Centos7下安装为例
1、安装Cenots7系统
2、安装Apache,php,git
Bash
yum install httpd php -y
设置httpd开机自启
Bash
systemctl enable httpd
systemctl start httpd
1、下载LibreSpeed
项目地址https://github.com/librespeed/speedtest
Bash
cd /root
git clone https://github.com/librespeed/speedtest.git
cd speedtest/
2、拷贝程序到 /var/www/html/ 目录下
Bash
cp -R backend example-singleServer-pretty.html *.js /var/www/html/
3、进入站点目录下把example-singleServer-pretty.html改名成index.html
Bash
cd /var/www/html/
mv example-singleServer-pretty.html index.html
4、测试
配置好后,访问 http://ip/index.html 即可使用。测速如下
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。