4月 082015
 

luarocks是lua实现的一个lua包管理工具。对于包管理工具,下载操作是少不了的,对于墙内的那些人来讲,proxy自然就是少不了的。

/etc/luarocks/config.lua 中添加变量 proxy 如下:

 

 Posted by at 下午 6:56
11月 072014
 

安装指南:

http://wiki.nginx.org/HttpLuaModule 

 

注意事项:

  1. nginx 与 lua_module的兼容性
  2. 如果要使用ffi的话,需要使用luajit (安装指南中有说明)

我的安装:

  1. nginx: http://nginx.org/download/nginx-1.6.2.tar.gz   (from: http://nginx.org/en/download.html )
  2. lua_nginx_module: https://github.com/openresty/lua-nginx-module/archive/v0.9.12.zip    (from:  https://github.com/openresty/lua-nginx-module/releases )
  3. ngx_devel_kit: https://github.com/simpl/ngx_devel_kit/archive/v0.2.19.zip ( from: https://github.com/simpl/ngx_devel_kit )
  4. 编译nginx时有一个的pcre依赖: http://sourceforge.net/projects/pcre/?source=typ_redirect
  5. 命令:

     

 

 

其他:

  1. http://openresty.org/
 Posted by at 上午 10:34