2014/03/04 13:49:39 [error] 12537#0: *53 lua entry thread aborted: runtime error: /usr/local/nginx/lua/common.lua:1: module 'resty.mdaxue' not found:
no field package.preload['resty.mdaxue']
no file '/usr/local/nginx/conf/waf/resty/mdaxue.lua'
no file '/usr/local/openresty/lualib/resty/mdaxue.so'
no file './resty/mdaxue.so'
no file '/usr/local/lib/lua/5.1/resty/mdaxue.so'
no file '/usr/local/openresty/luajit/lib/lua/5.1/resty/mdaxue.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file '/usr/local/openresty/lualib/resty.so'
no file './resty.so'
no file '/usr/local/lib/lua/5.1/resty.so'
no file '/usr/local/openresty/luajit/lib/lua/5.1/resty.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
coroutine 0:
[C]: in function 'require'
/usr/local/nginx/lua/common.lua:1: in function </usr/local/nginx/lua/common.lua:1>, client: 127.0.0.1,
然后如果我在nginx的http块里面加上lua_package_path "/usr/local/openresty/lualib/resty/?.lua;;"; 就可以了。