使用已经安装的openresty安装resty.http [英] Install resty.http with already installed openresty
本文介绍了使用已经安装的openresty安装resty.http的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我安装了openresty-1.13.6.1,但缺少"resty.http"模块.我的openresty安装在/usr/local/openresty中,我需要将resty.http模块与其集成.怎么做?
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?
推荐答案
只需复制两个文件( https://github.com/pintsized/lua-resty-http/tree/master/lib/resty )放入/usr/local/openresty/lualib文件夹.
Just copy both files (https://github.com/pintsized/lua-resty-http/tree/master/lib/resty) into /usr/local/openresty/lualib folder.
更新:
结果文件结构应为:
/usr/local/openresty/lualib/resty/http.lua
/usr/local/openresty/lualib/resty/http_headers.lua
这篇关于使用已经安装的openresty安装resty.http的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文