我安装了 openresty-1.13.6.1 但它缺少“resty.http”模块。我的 openresty 安装在 /usr/local/openresty 中,我需要将 Resty.http 模块与其集成。怎么做?
只需复制两个文件(https://github.com/pintsized/lua-resty-http/tree/master/lib/resty https://github.com/pintsized/lua-resty-http/tree/master/lib/resty)进入 /usr/local/openresty/lualib 文件夹。
Update:
结果文件结构应该是:
/usr/local/openresty/lualib/resty/http.lua
/usr/local/openresty/lualib/resty/http_headers.lua
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)