这个是我用错了,忘了:lua_shared_dict。
On 6月5日, 下午6时25分, 老王 <hi.laow...@gmail.com> wrote:
> 我安装了最新版的nginx lua模块,运行了一个wiki中的例子:
>
> location /lua {
> content_by_lua '
> local dogs = ngx.shared.dogs
> dogs:set("Jim", 8)
> ngx.say("STORED")
> ';
> }
>
> 但是没有成功,错误信息如下:
>
> [string "content_by_lua"]: in function <[string "content_by_lua"]:1>,
> client: 172.23.11.103, server: wangbo5.360.cn, request: "GET /lua HTTP/
> 1.1", host: "localhost"