Hello!
2013/7/17 joeking36:
> 请问下openresty 如何给nginx 添加 patch
> nginx-limit-upstream url:https://github.com/cfsego/nginx-limit-upstream
> 我已安装到/usr/local/openresty/nginx 下了
>
显然,这样的补丁只能应用到源代码,而不是已经编译安装好的二进制文件上。
ngx_openresty 包含的 nginx 核心位于 ngx_openresty 源码树的 bundle/nginx-* 目录下。比如
ngx_openresty 1.2.8.6 的 nginx 核心的源码便位于 bundle/nginx-1.2.8/
目录下。你可以在那里应用补丁。
不过你应当向补丁的作者确认此补丁确实可以和 ngx_openresty 包含的 nginx
一起工作,或者你需要自己仔细测试这个补丁不存在兼容性方面的问题。否则不兼容的补丁很容易让你的服务器变得不稳定。我也不会对打上第三方补丁的
ngx_openresty 提供技术支持。
Best regards,
-agentzh