Aicache Accelerated Architecture Environment
1. Preliminary preparatory work:
A server that can run 64-bit Linux UBUNTU9.1
2. Go to Www.aicache.com (English) www.aicache.cn (Chinese) website to download the trial version.
3. Download the installation package Aicache.tar and decompression
# TAR-XVF Aicache.tar
4. Start Installation
(Note that if the system prompts you not to operate because of insufficient permissions, you need to obtain administrative privileges by adding sudo before the original instruction.) If #./install.sh cannot be performed, use #sudo./install.sh)
The installation process is very simple, the extracted directory is Aicache
# CD Aicache
#./install.sh
Installation is complete, now the configuration Aicache.
Because we are testing on the same machine, so, according to the principle, we want to aicache occupy 80 ports, so easy to access, so if only one IP machine, it is necessary to change the Web server (I am using Apache) port. I'll change the Apache port to 82.
By default, Aicache is installed in the/usr/local/aicache directory.
You will see a aicache executable program, a example.cfg configuration file, a 714975372.demo-like file.
First of all, example.cfg copy, I'm here named My.cfg. Open the My.cfg file using the editor (my Vim)
#cp example.cfg my.cfg
#vim my.cfg
Find hostname to change the value behind it to the address of the website to be tested, we use 192.168.1.247 to do an example.
Hostname 192.168.1.247
Find the Healthcheck parameter and change the value behind to a file that exists on your Web server, which is a aicache health check for the Web server. My change to:
Healthcheck/index.html 5 4
Find the origin parameter and add your Web server address, because you can add it on this machine
Origin 127.0.0.1 82
OK, you can save the exit editor.
To this end, the basic configuration of Aicache has ended. The bottom can be tested OH ~ ~
Run Aicache
Execute in the directory you have installed
#./aicache-f my.cfg-l 714975372.demo
If there are no errors in the returned information running, then the operation succeeds.
Below will use tools to test the effect!
Test the Ab-n connection number-C concurrent number URL with the Apache pressure test software
Test the Aicache and the original server separately, you will see a very different result oh. Get ready to surprise me.
#ab-N 5000-c 1000 http://192.168.1.247:80/This aicache test is the result of acceleration.
#ab-N 5000-c 1000 http://192.168.1.247:82/This test against the original Web server, no acceleration results.