要安装Speedtest,需要先安装apache,参见《Ubuntu下Apache的安装》一文;*(再安装LAMP server,参见《Ubuntu下快速安装LAMP server》一文;)(可以不用安装LAMP);最后安装Speedtest。

首先,打开Ubuntu虚拟机,Terminal打开root权限:“sudo -s”。

一、安装speedtest NetGauge

  (1)下载

  http://files.netgauge.ookla.com/releases/netgaugedemo.zip

  (2)解压

  解压后文件夹命名为speedtest

  (3)放置

  将speedtest文件夹放在“/usr/local/apache/htdocs/”路径下,最终路径是这样的“/usr/local/apache/htdocs/speedtest/*.*”。

  *若使用LAMP安装的Apache,路径应为“/var/www/html/speedtest/*.*”。

  (4)修改权限

  将speedtest文件夹以及里面的所有文件的权限都修改为777。

  #chmod 777 speedtest

  #chmod 777 speedtest/*

  (5)修改设置文件

    <1>修改原因

    其他IP需要调用本地的speedtest

    <2>修改方法

    /usr/local/apache/htdocs/speedtest/setting.xml文件第6行

    把“host=  127.0.0.1:8080”改为“host=  ubuntu的ip:8080”

  (6)检测是否安装成功

  打开浏览器,URL“ubuntu虚拟机的IP地址/speedtest/”

  启动成功的页面会显示:

  “OoklaServer

  It worked!”

二、安装ooklaserver.sh

  (1)下载

  #curl -O http://install.speedtest.net/ooklaserver/ooklaserver.sh

  (2)修改权限为允许安装

  #chmod a+x ooklaserver.sh

  (3)安装

  #/usr/local/apache/htdocs/speedtest/ooklaserver.sh install

  *(4)查看ooklaserver.sh的帮助文件

  #/usr/local/apache/htdocs/speedtest/ooklaserver.sh -h

  (5)启动ooklaserver.sh

  #/usr/local/apache/htdocs/speedtest/ooklaserver.sh start

  (6)设为开机启动

  /etc/rc.local文件中添加一行代码

  “#/usr/local/apache/htdocs/speedtest/OoklaServer --deamon”

  *(7)重新安装

    <1>重新安装原因:启动ooklaserver.sh时,显示

    “Starting Ooklaserver

    Deamon not installed.Please run install first.”

    并且,URL“ubuntu虚拟机的IP地址/speedtest/”页面,点击“Test”按钮,不会有任何响应。

    <2>重新安装方法:

    #/usr/local/apache/htdocs/speedtest/ooklaserver.sh install

*三、关闭ubuntu防火墙

  

  (1)查看当前防火墙的状态

  #service ufw status

  (2)关闭防火墙

  #service ufw stop

  (3)设置开机不启动防火墙

  #ufw disable

四、最终使用speedtest,也是检验是否安装成功的标志

  *(1)启动Apache (若设为了开机启动,此步可跳过)

  #/usr/local/apache/bin/apachectl start

*(2)若同时也使用LAMP安装了Apache的话,可能会有影响

  提示:"(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80"

    <1>查看是谁占用我的80端口

    #netstat -lnp |grep 80

    <2>杀死占用80的apache2服务

    #pkill -9 apache2

    <3>重新启动apache服务

    #/usr/local/apache/bin/apachectl start

  *(3)启动ooklaserver.sh (若设为了开机启动,此步可跳过)

  #/usr/local/apache/htdocs/speedtest/ooklaserver.sh start

  (4)检测是否安装成功

  在其他IP端打开浏览器输入URL“ubuntu虚拟机的IP地址/speedtest/”

  启动成功的页面会显示:图形界面的speedtest

  (5)可以直接点击“Test”按钮对网络进行测试。如图

  

  *(6)更新license

    <1>更新原因:“expired license”,打开的页面如图

    

    <2>更新方法:

    链接:http://www.ookla.com/trial   注册(遇到要填网站什么的,随便写就好,比如111)   下载   解压

    里面有个settings.xml文件,将第二行<licensekey>*******</licensekey>覆盖到之前的settings.xml文件   路径/usr/local/apache/htdocs/speedtest/  保存后刷新页面即可

    (7)重新启动speedtest

     如果出现点击start test之后没反应的情况,需要重新启动服务,启动方法如上步骤(1)和步骤(3).

Ubuntu下Speedtest的安装的更多相关文章

  1. Ubuntu下git的安装与使用

    Ubuntu下git的安装与使用 Ubuntu下git的安装与使用与Windows下的大致相同,只不过个人感觉在Ubuntu下使用git更方便. 首先,确认你的系统是否已安装git,可以通过git指令 ...

  2. Ubuntu下Apache的安装

    Ubuntu下可快速安装LAMP server(Apache+MySQL+PHP5),参见<Ubuntu下快速安装LAMP server>一文. 也可以手动安装Apache.本文介绍如何手 ...

  3. Linux(Ubuntu)下MySQL的安装与配置

    转自:http://www.2cto.com/database/201401/273423.html 在Linux下MySQL的安装,我一直觉得挺麻烦的,因为之前安装时就是由于复杂的配置导致有点晕.今 ...

  4. ubuntu下的openfire安装、配置、运行

    openfire服务器              Openfire 采用Java开发,开源的实时协作(RTC)服务器基于XMPP(Jabber)协议.您可以使用它轻易的构建高效率的即时通信服务器.Op ...

  5. ubuntu下boost编译安装

    ubuntu下boost编译安装 boost 安装 1.依赖安装 apt-get install mpi-default-dev libicu-dev python-dev python3-dev l ...

  6. 2010-01-20 12:09 ubuntu下minicom的安装及使用

    转http://hi.baidu.com/npugtawqdnbgqrq/item/106f805409b42813db163527 ubuntu下minicom的安装及使用 安装: sudo apt ...

  7. ubuntu 下redis的安装简介

    Linux公社:https://www.linuxidc.com/topicnews.aspx?page=2&tid=2 简单介绍下ubuntu下redis的安装方式: 第一种: 1:进入re ...

  8. ubuntu下tomcat的安装及注册成系统服务

    在ubuntu下tomcat的安装有两种方式,第一种是下载二进制文件,解压安装:第二种则是使用apt-get自动下载.这里不推荐第二种方法安装,因为这种方法安装会像天女散花一样把安装的文件散落在系统的 ...

  9. Ubuntu下opencv的安装及IDEA开发配置

    Ubuntu下opencv的安装及IDEA开发配置 环境配置  这篇博客主要介绍Ubuntu下opencv的安装编译,以及IDEA对opencv进行Java开发的环境配置 安装opencv 首先安装o ...

随机推荐

  1. Python3基础 reverse 将列表倒序排列

    镇场诗:---大梦谁觉,水月中建博客.百千磨难,才知世事无常.---今持佛语,技术无量愿学.愿尽所学,铸一良心博客.------------------------------------------ ...

  2. git 临时记录

    http://blog.csdn.net/wangbole/article/details/8552808 http://blog.csdn.net/gq414047080/article/detai ...

  3. select框内容的编辑、修改、添加、删除操作

    // 添加 function col_add() { var selObj = $("#mySelect"); var value="value"; var t ...

  4. centos7 Nexus maven私有仓库

    cd /home wget http://www.sonatype.org/downloads/nexus-latest-bundle.tar.gz mkdir nexus tar zxvf nexu ...

  5. HDU 5734 Acperience(返虚入浑)

    p.MsoNormal { margin: 0pt; margin-bottom: .0001pt; text-align: justify; font-family: Calibri; font-s ...

  6. 练习一:GitHub Desktop下载及使用

    推荐使用Git for Windows,官方网站 https://git-for-windows.github.io/ 这里有我写的Git和Github教程:http://www.cnblogs.co ...

  7. 安装 SciPy 和 scikit-learn 升级pip 及pip基本命令表

    安装Scipy和scikit-learn出错,出错记录及当时最终解决办法 问题: 一.使用pip直接安装 直接pip install scipy C:\Users\Plain>pip insta ...

  8. java高薪之路__010_设计模式

    设计模式只是一个在构建大型工程时,为了方便更改,添加,查询和管理的一种代码工具,没有必要单独为了设计模式而使用设计模式,使简单的事情复杂化. 总体来说设计模式分为三大类: 1. 创建型模式,共五种 - ...

  9. iOS 解惑

    (1)ARC下IBOutlet用weak还是strong http://blog.csdn.net/yongyinmg/article/details/20623605 苹果也没有完全建议用weak ...

  10. Spring事务管理只对出现运行期异常进行回滚

    原文:http://blog.csdn.net/abc19900828/article/details/39497631 使用spring难免要用到spring的事务管理,要用事务管理又会很自然的选择 ...