开发者社区 问答 正文

OpenResty包含lua_resty_http 嘛??报错

我这里报错了,我是直接在access_by_lua_block中用了

local http = require "resty.http"

然后就报错了。。。

[error] 5563#0: *1 lua entry thread aborted: runtime error: access_by_lua(nginx.conf:137):48: module 'resty.http' not found:

展开
收起
爱吃鱼的程序员 2020-06-09 16:03:43 647 分享 版权
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    是不是我安装的时候没有激活lua_resty_http模块?还是怎么的?

    2020-06-09 16:03:59
    赞同 展开评论