Centos7系统搭建HTML5网页网络检测工具LibreSpeed
温馨提示:这篇文章已超过475天没有更新,请注意相关的内容是否还可用!
LibreSpeed是一款快速部署,可以用于测试网速的工具,特别是在局域网环境中,用来测试网络设备带宽是否达标非常好用。代码主要由一组html、js和php构成。下面以Centos7下安装为例
环境部署
1、安装Cenots7系统
2、安装Apache,php,git
yum install httpd php -y
设置httpd开机自启
systemctl enable httpd systemctl start httpd
LibreSpeed部署
1、下载LibreSpeed
项目地址https://github.com/librespeed/speedtest
cd /root git clone https://github.com/librespeed/speedtest.git cd speedtest/
2、拷贝程序到 /var/www/html/ 目录下
cp -R backend example-singleServer-pretty.html *.js /var/www/html/
3、进入站点目录下把example-singleServer-pretty.html改名成index.html
cd /var/www/html/ mv example-singleServer-pretty.html index.html
4、测试
配置好后,访问 http://ip/index.html 即可使用。测速如下
以上就是这篇文章的全部内容了,希望本文的内容对大家的学习或者工作有参考学习价值
喜欢请点击上方【分享】,如果对您有帮助可点击上方【打赏】打赏本站。谢谢大家对阿豪运维笔记的支持。