ubuntu安装nginx的lua模块
1.系统信息:cat /proc/version
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 2013
2.安装的nginx版本
wget -q http://nginx.org/download/nginx-1.4.4.tar.gz ;
3.添加的第三方模块
git clone https://github.com/simpl/ngx_devel_kit
git clone https://github.com/agentzh/set-misc-nginx-module
git clone https://github.com/agentzh/memc-nginx-module
git clone https://github.com/agentzh/echo-nginx-module
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