ubuntu安裝nginx的lua模塊nginx
1.系統信息:cat /proc/versiongit
Linux version 3.5.0-25-generic (buildd@lamiak) (gcc version 4.7.2 (Ubuntu/Linaro 4.7.2-2ubuntu1) ) #39-Ubuntu SMP Mon Feb 25 19:02:34 UTC 2013github
2.安裝的nginx版本json
wget -q http://nginx.org/download/nginx-1.4.4.tar.gz ;ubuntu
3.添加的第三方模塊ui
git clone https://github.com/simpl/ngx_devel_kitlua
git clone https://github.com/agentzh/set-misc-nginx-moduledebug
git clone https://github.com/agentzh/memc-nginx-moduleip
git clone https://github.com/agentzh/echo-nginx-modulessl
git clone https://github.com/chaoslawful/lua-nginx-module
git clone https://github.com/agentzh/srcache-nginx-module
git clone https://github.com/chaoslawful/drizzle-nginx-module
git clone https://github.com/agentzh/rds-json-nginx-module
4.編譯前準備
安裝lua-nginx-module模塊須要先安裝lua,具體安裝方法百度,安裝以後設置環境變量在/etc/environment
5.安裝開始
tar xzf nginx-1.4.4.tar.gz
cd nginx-1.4.4
./configure --group=www --prefix=/usr/local/nginx --with-pcre --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --with-ipv6 --with-debug --add-module=./ngx_devel_kit --add-module=./set-misc-nginx-module --add-module=./memc-nginx-module --add-module=./echo-nginx-module --add-module=./lua-nginx-module --add-module=./srcache-nginx-module --add-module=./rds-json-nginx-module
這個模塊有問題
--add-module=./drizzle-nginx-module
6.make && make install