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会...
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配置中将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性...
打开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...
lua_code_cache是默认开启状态的,做调试的时候可以设置为lua_code_cache off即可关闭缓存。 从0.9.3版本开始,lua_code_cache关闭时,ngx_lua服务的每个请求都将在单独的Lua VM实例中运行。因此,不会缓存set_by_lua_file,content_by_lua_file,access_by_lua_file等中引用的Lua文件,并且将重新使用所有使用的Lua模...
打开nginx.conf配置server{ lua_code_cache off; //关闭lua缓存 重启后生效 server_name localhost; default_type 'text/plain'; content_by_lua_file /conf/lua/test.lua; // lua nginx 重启 缓存 加载 转载 mb5fe5605983816 2018-01-16 11:45:00 264阅读 2评论 VS code使用Lua vs code lua 文...