On Mon, May 14, 2012 at 3:39 PM, 蒋子俊 <jzj....@gmail.com> wrote:
> 请问,如何将HttpUpstreamConsistentHash之类的第三方模块整合进openresty一起编译?有没有较方便的办法,如不改openresty的configure文件?
>
> 直接在openresty下面的nginx部分用--add-module=则遇到了找不到lua-jit的问题。
>
ngx_openresty 自己的 ./configure 脚本支持所有 nginx 的 ./configure 脚本选项:
$ ./configure --help|grep add-module
--add-module=PATH enable an external module
事实上,所有 ngx_openresty 的 ./configure 脚本不认识的选项都会自动传递给 nginx 的 ./configure 脚本。
如果你同时需要给 nginx 核心或者其他组件打补丁的话,可以直接修改 bundle/
目录下的对应的源码。修改完之后,还是需要在顶层目录上执行正常的 ./configure && make && make install
的安装步骤。
Regards,
-agentzh