使用已安装的 openresty 安装 resty.http

我已经安装了 openresty-1.13.6.1,但缺少 'resty.http' 模块。我的 openresty 安装在 /usr/local/openresty 中,我需要将 resty.http 模块与其集成。如何操作?

点赞
用户2060502
用户2060502

只需将这两个文件(https://github.com/pintsized/lua-resty-http/tree/master/lib/resty)复制到 /usr/local/openresty/lualib 文件夹中。

更新:

结果文件结构应为:

/usr/local/openresty/lualib/resty/http.lua
/usr/local/openresty/lualib/resty/http_headers.lua
2018-01-19 19:36:23