VeryNginx
VeryNginx copied to clipboard
使用自己编译的nginx出错
root@ZiShuo:# /usr/local/nginx-lua-1.11/sbin/nginx -t nginx: the configuration file /usr/local/nginx-lua-1.11/conf/nginx.conf syntax is ok nginx: [error] init_by_lua_file error: ...wwroot/lnmp-lua/verynginx/lua_script/VeryNginxConfig.lua:245: module 'dkjson' not found: no field package.preload['dkjson'] no file '/home/wwwroot/lnmp-lua/verynginx/lua_script/dkjson.lua' no file './dkjson.lua' no file '/usr/local/share/luajit-2.1.0-beta2/dkjson.lua' no file '/usr/local/share/lua/5.1/dkjson.lua' no file '/usr/local/share/lua/5.1/dkjson/init.lua' no file 'amverynginx_path/lua_script/module/dkjson.lua' no file './dkjson.lua' no file '/usr/local/share/luajit-2.1.0-beta2/dkjson.lua' no file '/usr/local/share/lua/5.1/dkjson.lua' no file '/usr/local/share/lua/5.1/dkjson/init.lua' no file '/home/wwwroot/lnmp-lua/verynginx/lua_script/dkjson.so' no file './dkjson.so' no file '/usr/local/lib/lua/5.1/dkjson.so' no file '/usr/local/lib/lua/5.1/loadall.so' stack traceback: [C]: in function 'require' ...wwroot/lnmp-lua/verynginx/lua_script/VeryNginxConfig.lua:245: in main chunk [C]: in function 'require' /home/wwwroot/lnmp-lua/verynginx/lua_script/on_init.lua:1: in main chunk nginx: configuration file /usr/local/nginx-lua-1.11/conf/nginx.conf test failed
已经安装了verynginx所需要的三个 Nginx 模块: lua-nginx-module http_stub_status_module http_ssl_module