• WAP手机版 加入收藏  设为首页
服务器类

Centos安装mini Speedtest宽带测试

时间:2015-4-20 14:35:28  作者:哎丫丫  来源:哎丫丫数码网  浏览:1515  评论:0

Download speedtest Mini Server from the link below. You need to Login before you can download. If you don’t have an account, register first.

  1. http://www.speedtest.net/mini.php
  2. 首先就是下载文件 具体下载地址http://c.speedtest.net/mini/mini.zip

Once downloaded mini.zip file, you need to unzip the archive file.

# Unzip mini.zip 解压文件

Now you need to determine on which server you want to host the application. You can choose any of the following as your hosting server – PHP, ASP, ASP.NET and JSP. Here we will be using PHP and Apache as Server to host.

Let’s install Apache, PHP and all needed PHP modules using the following commands. 配置环境,这里可以参阅本站centos lnmp的建议安装方法,英文给的是很多很多系统的环境配置咯

On Debian/Ubuntu/Mint
# apt-get install apache2
# apt-get install php5 php5-mysql php5-mcrypt php5-gd libapache2-mod-php5
On RedHat/CentOS/Fedora
# yum install httpd
# yum install php php-mysql php-pdo php-gd php-mbstring

After installing Apache and PHP with all required modules, restart the Apache service as shown below.

# service apache2 restart		[On Debian/Ubuntu/Mint]
# service httpd restart			[On RedHat/CentOS/Fedora]
# systemct1 restart httpd		[On RHEL/CentOS 7.x and Fedora 21]

Next, create a phpinfo.php file under Apache default directory, that we will use to check if PHP is rendering correctly or not.

# echo "" > /var/www/phpinfo.php         [On Debian/Ubuntu/Mint]
# echo "" > /var/www/html/phpinfo.php [On RedHat/CentOS/Fedora]

Note: The default Apache root directory may be /var/www/ or /var/www/html/, please check the path before moving forward…

Now we will be uploading the extracted folder mini to the Apache default directory location.

# cp -R /[location to extracted folder]/mini /var/www/       [On Debian/Ubuntu/Mint]
# cp -R /[location to extracted folder]/mini /var/www/html   [On RedHat/CentOS/Fedora]

We need to rename a file hence Long list the contents of directory that was uploaded to the Apache directory/var/www/ or /var/www/html.

这里说的是吧解压的文件放在WEB的根目录,或者新建立一个MIni目录

# ls -l /var/www/mini

OR

# ls -l /var/www/html/mini