ubuntu安装nginx的lua模块

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 

转载于:https://my.oschina.net/u/820238/blog/185879

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值