Install resty.http with already installed openresty

一笑奈何 提交于 2021-01-04 07:27:08

问题


I installed openresty-1.13.6.1 but it lacks 'resty.http' module. My openresty is installed in /usr/local/openresty and i need to integrate resty.http module with it. How to do it?


回答1:


Just copy both files (https://github.com/pintsized/lua-resty-http/tree/master/lib/resty) into /usr/local/openresty/lualib folder.

Update:

Resulted file structure should be:

/usr/local/openresty/lualib/resty/http.lua
/usr/local/openresty/lualib/resty/http_headers.lua


来源:https://stackoverflow.com/questions/48319678/install-resty-http-with-already-installed-openresty

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!