没有引入第三方模块resty:

解决:
1、下载第三方模块依赖:https://github.com/ledgetech/lua-resty-http
2、将lua-resty-http/lib/resty下的两个文件http.lua和http_headers.lua拷贝到/usr/local/openresty/lualib/resty目录下(目标路径根据 个人安装的openresty路径为准,这里是默认安装路径)
3、重启项目,检查错误日志。
博客主要讲述了未引入第三方模块resty的解决办法。先从https://github.com/ledgetech/lua-resty-http下载第三方模块依赖,再将lua-resty-http/lib/resty下的http.lua和http_headers.lua拷贝到指定openresty路径,最后重启项目并检查错误日志。
没有引入第三方模块resty:

解决:
1、下载第三方模块依赖:https://github.com/ledgetech/lua-resty-http
2、将lua-resty-http/lib/resty下的两个文件http.lua和http_headers.lua拷贝到/usr/local/openresty/lualib/resty目录下(目标路径根据 个人安装的openresty路径为准,这里是默认安装路径)
3、重启项目,检查错误日志。
1万+
2697
3946

被折叠的 条评论
为什么被折叠?
