2016/03/10 15:48:47 [error] 1598#0: *1 lua entry thread aborted: runtime error: ./lua/RequestUploadToakenUtils.lua:4: module 'cjson' not found:
no field package.preload['cjson']
no file '/root/openresty/workspace/gameserver/chessweb-server/lua/cjson.lua'
no file '/root/openresty/openresty/lualib/cjson.lua'
no file '/root/openresty/openresty/lualib/cjson/init.lua'
no file './cjson.lua'
no file '/root/openresty/openresty/luajit/share/luajit-2.1.0-beta1/cjson.lua'
no file '/usr/local/share/lua/5.1/cjson.lua'
no file '/usr/local/share/lua/5.1/cjson/init.lua'
no file '/root/openresty/openresty/luajit/share/lua/5.1/cjson.lua'
no file '/root/openresty/openresty/luajit/share/lua/5.1/cjson/init.lua'
no file '/root/openresty/openresty/lualib/cjson.so'
no file './cjson.so'
no file '/usr/local/lib/lua/5.1/cjson.so'
no file '/root/openresty/openresty/luajit/lib/lua/5.1/cjson.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
root/openresty/openresty/lualib/cjson.so 这个目录下cjson.so 是有的啊
环境是阿里云,centos 6.3