nginx配置中将lua_code_cache配置成on/off来控制是否关闭lua 的cache缓存,如果设置为off.则每次修改lua脚本都会重新加载新的lua代码,从而实现快速调试响应。同时状态为off时启动或重启nginx都会提示:nginx: [alert] lua_code_cache is off; this will hurt performance in /path/to/nginx.conf。因为这会影响nginx性...
lua_code_cache off; //关闭lua缓存重启后⽣效 server_name localhost; default_type 'text/plain'; content_by_lua_file /conf/lua/test.lua; //将lua程序⽤file⽂件加载 } nginx:[warn] lua_code_cache is off; this will hurt performance in /usr/local/nginx/conf/nginx.cof:87 ...
打开nginx.conf配置 server{ lua_code_cache off; //关闭lua缓存 重启后生效 server_name localhost; default_type 'text/plain'; content_by_lua_file /conf/lua/test.lua; //将lua程序用file文件加载 } nginx:[warn] lua_code_cache is off; this will hurt performance in /usr/local/nginx/conf/nginx...
server{lua_code_cache off;//关闭lua缓存 重启后生效 server_name localhost;default_type'text/plain';content_by_lua_file /conf/lua/test.lua;//将lua程序用file文件加载} Copy 注意:重启nginx会有警告不用管它 nginx:[warn]lua_code_cache is off;this will hurt performancein/usr/local/nginx/conf/ng...