Nginx +lua +redis Building Automatic Cache system

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.