Common Nginx Extension Installation

Source: Internet
Author: User
Tags lua
1. Install drizzle1.0:

wget HTTP://AGENTZH.ORG/MISC/NGINX/DRIZZLE7-2011.07.21.TAR.GZCD drizzle7-2011.07.21/./configure--without-server Make Libdrizzle-1.0make install-libdrizzle-1.0
Modify/etc/profile, add the following two lines, or directly execute the following two sentences
Export Libdrizzle_inc=/usr/local/include/libdrizzle-1.0export Libdrizzle_lib=/usr/local/lib

2. Download and unzip Rds-json-nginx-module
wget https://github.com/openresty/rds-json-nginx-module/archive/v0.13.tar.gz
TAR-ZXVF v0.13.tar.gz

3. Download and unzip Drizzle-nginx-module
wget https://github.com/openresty/drizzle-nginx-module/archive/master.zipunzip master.zipmv Master.zip DRIZZLE-NGINX-MODULE-MASTER.ZIPMV Drizzle-nginx-module-master Drizzle-nginx-module

4. Download and unzip Redis2-nginx-module
wget https://github.com/openresty/redis2-nginx-module/archive/master.zipunzip master.zipmv Master.zip REDIS2-NGINX-MODULE-MASTER.ZIPMV Redis2-nginx-module-master Redis2-nginx-module

Download and unzip Set-misc-nginx-module (unknown directive "Set_unescape_uri")
wget HTTPS://GITHUB.COM/OPENRESTY/SET-MISC-NGINX-MODULE/ARCHIVE/V0.28.TAR.GZTAR-ZXVF v0.28.tar.gz

Download and compile Lua-cjson (module ' Cjson ' not found)
wget HTTP://WWW.KYNE.COM.AU/~MARK/SOFTWARE/DOWNLOAD/LUA-CJSON-2.1.0.TAR.GZTAR-ZXVF LUA-CJSON-2.1.0.TAR.GZCD lua-cjson-2.1.0
Modify the makefile in the current directory to assign a value of Lua_include_dir to $ (PREFIX)/include/luajit-2.0
Makemake Install

Download and compile lua-redis-parser-0.10.tar.gz (module ' redis.parser ' not found )
wget https://github.com/openresty/lua-redis-parser/archive/master.zipmv Master.zip Lua-redis-parser-master.zipunzip lua-redis-parser-master.zip CD Lua-redis-parser-master

Modify the makefile in the current directory to assign a value of Lua_include_dir to $ (PREFIX)/include/luajit-2.0
Make && make install

4. Recompile Nginx
cd/data0/source_code/nginx-1.4.2  ./configure  --user=www--group=www--prefix=/data0/nginx-1.4.2-- With-http_stub_status_module--with-pcre=/data0/source_code/pcre-8.33/--add-module=/data0/source_code/ngx_devel _kit-0.2.18  --add-module=/data0/source_code/echo-nginx-module-0.57--add-module=/data0/source_code/ lua-nginx-module-0.8.6  --add-module=/data0/source_code/rds-json-nginx-module-0.13--add-module=/data0/ Source_code/drizzle-nginx-module--add-module=/data0/source_code/redis2-nginx-module--add-module=/data0/source_ Code/set-misc-nginx-module-0.28make-j2make Install

After completion, you can execute objs/nginx-v in the current directory to see if all of the module is loaded, as follows:

Objs/nginx-v

The above describes the common nginx extension installation, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.

  • 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.