新聞中心
這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
快速搭建webspeedtest站點
speedtest作為一款在線并且可視化的網(wǎng)速測試工具。使用方法簡單,無需下載、安裝多余軟件,只需有瀏覽器即可。那如何搭建一個自己的web speedtest站點呢?

創(chuàng)新互聯(lián)自2013年起,公司以成都網(wǎng)站設計、成都網(wǎng)站建設、系統(tǒng)開發(fā)、網(wǎng)絡推廣、文化傳媒、企業(yè)宣傳、平面廣告設計等為主要業(yè)務,適用行業(yè)近百種。服務企業(yè)客戶1000+,涉及國內多個省份客戶。擁有多年網(wǎng)站建設開發(fā)經(jīng)驗。為企業(yè)提供專業(yè)的網(wǎng)站建設、創(chuàng)意設計、宣傳推廣等服務。 通過專業(yè)的設計、獨特的風格,為不同客戶提供各種風格的特色服務。
項目開源地址:https://github.com/adolfintel/speedtest
安裝web,php,git程序,克隆speedtest代碼,啟動服務進行基礎測試
yum install httpd php git -y
git clone https://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 apache * #更改當前的目錄所屬主
systemctl start httpd
http:/hostip #訪問主機ip就可以測速了
安裝數(shù)據(jù)庫,導入數(shù)據(jù),將測試的結果保存以便后續(xù)查詢
+++++++++++
cd /root/speedtest/
cp -R results/ /var/www/html/
cd /var/www/html/
chown -R apache *
cd /var/www/html/results/
yum install mariadb-server -y
systemctl start mariadb
mysql_secure_installation
mysql -uroot -p
create database speedtest;
exit;
+++
vi telemetry_settings.php
$stats_password="admin"; //password to login to stats.php. Change this!!!
$enable_id_obfuscation=true; //if set to true, test IDs will be obfuscated to prevent users from guessing URLs of other tests
// Mysql settings
$MySql_username="root";
$MySql_password="12456";
$MySql_hostname="localhost";
$MySql_databasename="speedtest";
++++++++++++++++++++++++++++++++++++++++++++
mysql -uroot -p speedtest cd /var/www/html/
cp ~/speedtest/example-singleServer-full.html index.html
+++
這樣測試后的有記錄,下面是登錄網(wǎng)站,密碼是上面($stats_password=”admin”;)中指定的
網(wǎng)站名稱:快速搭建webspeedtest站點
文章轉載:http://www.5511xx.com/article/dheocje.html


咨詢
建站咨詢
