内网测速平台搭建
发布网友
发布时间:2024-09-26 23:48
我来回答
共1个回答
热心网友
时间:2024-12-09 17:08
系统参考链接
https://github.com/librespeed/speedtest
2、系统部署规划
3、系统部署过程
3.1 设置软件源
3.2 安装与配置软件
apt install apache2 php -y
git clonehttps://github.com/adolfintel/speedtest.git
cd speedtest
cp -R backend example-singleServer-pretty.html *.js /var/www/html/
cd /var/www/html/
mv example-singleServer-pretty.html index.html
chown -R www-data *
cd /root/speedtest/
cp -R results/ /var/www/html/
cd /var/www/html/
chown -R www-data *
3.3 安装与配置数据库
apt install mysql-server -y
apt install phpmyadmin -y
ln -s /usr/share/phpmyadmin /var/www/html/
sudo mysql
alter user 'root'@'localhost' identified with mysql_native_pasword by 'set_your_password';
flush privileges;
exit
vim /var/www/html/results/telemetry_settings.php
$stats_password = 'your_set_password';
$enable_id_obfuscation = true;
$redact_ip_addresses = false;
$MySql_username = 'root';
$MySql_password = 'your_set_password';
$MySql_hostname = 'localhost';
$MySql_databasename = 'speedtest';
$MySql_port = '3306';
3.4 通过phpmyadmin登陆mysql
3.5 查看speedtest的检测数据