socket不是继承在openresty 了吗,为什么我调用老是为nil
我用一下代码:
content_by_lua '
local socket = ngx.socket.tcp;
ngx.say("ddd");
';
服务器就会报错:
2017/09/27 10:46:51 [error] 14680#0: *21100 lua handler aborted: runtime error: [string "content_by_lua"]:2: attempt to index field 'socket' (a nil value)
是我的openresty 版本低了吗?还是nginx要修改什么配置吗?