1. drizzle1.0 설치:
wget http://agentzh.org/misc/nginx/drizzle7-2011.07.21.tar.gz cd drizzle7-2011.07.21/ ./configure --without-server make libdrizzle-1.0 make install-libdrizzle-1.0/etc/profile을 수정하고, 다음 두 줄을 추가하거나, 다음 두 문장을 직접 실행하세요
export LIBDRIZZLE_INC=/usr/local/include/libdrizzle-1.0 export LIBDRIZZLE_LIB=/usr/local/lib
wget https://github.com/openresty/rds-json-nginx-module/archive/v0.13.tar.gz
tar -zxvf v0.13.tar.gz
wget https://github.com/openresty/drizzle-nginx-module/archive/master.zip unzip master.zip mv master.zip drizzle-nginx-module-master.zip mv drizzle-nginx-module-master drizzle-nginx-module
wget https://github.com/openresty/redis2-nginx-module/archive/master.zip unzip master.zip mv master.zip redis2-nginx-module-master.zip mv redis2-nginx-module-master redis2-nginx-module
wget https://github.com/openresty/set-misc-nginx-module/archive/v0.28.tar.gz tar -zxvf v0.28.tar.gz
wget http://www.kyne.com.au/~mark/software/download/lua-cjson-2.1.0.tar.gz tar -zxvf lua-cjson-2.1.0.tar.gz cd lua-cjson-2.1.0현재 디렉터리에서 Makefile을 수정하고 LUA_INCLUDE_DIR 값을 $(PREFIX)/include/luajit-2.0
make make install에 할당합니다. 🎜> lua-redis-parser-0.10.tar.gz를 다운로드하고 컴파일합니다('redis.parser' 모듈을 찾을 수 없음
wget https://github.com/openresty/lua-redis-parser/archive/master.zip mv master.zip lua-redis-parser-master.zip unzip lua-redis-parser-master.zip cd lua-redis-parser-master현재 디렉터리에서 Makefile을 수정하고 할당 $(PREFIX)/include/luajit-2.0
make && make install의 LUA_INCLUDE_DIR 값 4. nginx 재컴파일
<pre name="code" class="html">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.28 make -j2 make install
objs/nginx -V