First, Nginx Environment construction
The first step
Download luajit-2.0.4.tar.gz http://luajit.org/download/LuaJIT-2.0.4.tar.gz
Install make && make install
Step Two
Download Nginx-dependent modules:
Openssl-1.0.2e.tar.gz https://www.openssl.org/source/old/1.0.2/openssl-1.0.2g.tar.gz
Pcre-8.37.tar.gz http://exim.mirror.fr/pcre/pcre-8.37.tar.gz
Zlib-1.2.8.tar.gz http://zlib.net/zlib-1.2.8.tar.gz
Echo-nginx-module Https://github.com/openresty/echo-nginx-module.git
Ngx_devel_kit Https://github.com/simpl/ngx_devel_kit.git
Redis2-nginx-module Https://github.com/openresty/redis2-nginx-module.git
Srcache-nginx-module Https://github.com/openresty/srcache-nginx-module.git
Lua-nginx-module Https://github.com/openresty/lua-nginx-module.git
Ngx_http_redis http://people.freebsd.org/~osa/ngx_http_redis-0.3.8.tar.gz
Set-misc-nginx-module Https://github.com/openresty/set-misc-nginx-module.git
Extract to root directory
Step Three
Download nginx-1.8.0
Go to Catalog
Installation
./configure--prefix=/usr/local/nginx--with-http_stub_status_module--with-http_ssl_module--with-pcre=.. /pcre-8.37--with-zlib=. /zlib-1.2.8--with-openssl=. /openssl-1.0.2e--add-module=. /echo-nginx-module--add-module=. /ngx_devel_kit--add-module=. /redis2-nginx-module--add-module=. /srcache-nginx-module--add-module=. /lua-nginx-module--add-module=. /ngx_http_redis--add-module=. /set-misc-nginx-module
Make && make install
Start Nginx
/usr/local/nginx/sbin/nginx
Nginx +lua +redis Building Automatic Cache system