zoukankan      html  css  js  c++  java
  • 搭建speedtest

      用于网络测速

    作者:邓聪聪

     [root@note-01 ~]# yum install httpd php git -y
     [root@note-01 ~]# git clone https://github.com/adolfintel/speedtest.git
     [root@note-01 ~]# cd speedtest/
     [root@note-01 speedtest]# cp -R backend/ example-singleServer-pretty.html *.js /var/www/html/
     [root@note-01 html]# mv example-singleServer-pretty.html index.html
     [root@note-01 html]# chown -R apache *
     [root@note-01 html]# systemctl start httpd

    安装数据

     [root@note-01 html]# cd /root/speedtest/
     [root@note-01 speedtest]# cp -R results/ /var/www/html/
     [root@note-01 speedtest]# cd /var/www/html/
     [root@note-01 html]# chown -R apache *
     [root@note-01 html]# cd /var/www/html/results/
     [root@note-01 results]# yum install mariadb-server -y
     [root@note-01 results]# systemctl start mariadb
     [root@note-01 results]# mysql_secure_installation ##设置密码为:123456
     [root@note-01 results]# mysql -uroot -p123456
     MariaDB [(none)]> create database speedtest; ##创建数据库
     MariaDB [(none)]> exit
     [root@note-01 results]# vi telemetry_settings.php
          4$stats_password="admin"; //password to login to stats.php. Change this!!!
          5$enable_id_obfuscation=true; //if setto true, test IDs will be obfuscated to prevent users from guessing URLs of other tests
         11// Mysql settings
         12$MySql_username="root";
         13$MySql_password="123456";
         14$MySql_hostname="localhost";
         15$MySql_databasename="speedtest";
     [root@note-01 results]# mysql -uroot -p speedtest < telemetry_mysql.sql
     [root@note-01 results]# cd /var/www/html/
     [root@note-01 html]# cp ~/speedtest/example-singleServer-full.html index.html
  • 相关阅读:
    你必须会的 JDK 动态代理和 CGLIB 动态代理
    Dubbo 扩展点加载机制:从 Java SPI 到 Dubbo SPI
    volatile 手摸手带你解析
    Dubbo之服务消费原理
    Dubbo之服务暴露
    ElasticSearch之映射常用操作
    Redis5新特性Streams作消息队列
    .NET 开源项目 StreamJsonRpc 介绍[下篇]
    .NET 开源项目 StreamJsonRpc 介绍[中篇]
    .NET 开源项目 StreamJsonRpc 介绍 [上篇]
  • 原文地址:https://www.cnblogs.com/dengcongcong/p/11613577.html
Copyright © 2011-2022 走看看