Common nginx extension installation

Source: Internet
Author: User
: This article mainly introduces the common nginx extension installation. if you are interested in the PHP Tutorial, refer to it. 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 decompress 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 decompress 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 decompress 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 Makefile in the current directory and assign the LUA_INCLUDE_DIR value 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 Makefile in the current directory and assign the LUA_INCLUDE_DIR value 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 run objs/nginx-V in the current directory to check whether all the modules to be installed are installed, as shown below:

Objs/nginx-V

The above describes the common nginx extension installation, including some content, and hope to be helpful to friends who are interested in the PHP Tutorial.

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.