原文:http://wiki.nginx.org/HttpLuaModule lua_code_cache 一般放在nginx.conf里面,设置lua程序是否缓存,默认是开启的,开发模式开启即可:lua_code_cache off。开启后,重启nginx会有提示:nginx: [warn] lua_code_cache is off; this will hurt performance in /home/wb-liqiu/git/dante/conf/nginx.conf:30 l...
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性...
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.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 off; # 关闭缓存(便于开发调试,线上生产环境一般都需要打开) 关闭缓存重启后收看到报警: nginx: [alert] lua_code_cache is off; this will hurt performance in /usr/local/openresty/nginx/conf/lua.conf:7 重启服务: /usr/local/openresty/nginx/sbin/nginx -s reload ...
lua_code_cache off; # 关闭缓存(便于开发调试,线上生产环境一般都需要打开) 关闭缓存重启后收看到报警: nginx: [alert] lua_code_cache is off; this will hurt performance in /usr/local/openresty/nginx/conf/lua.conf:7 重启服务: /usr/local/openresty/nginx/sbin/nginx -s reload ...
lua_code_cache off; # 关闭缓存(便于开发调试,线上生产环境一般都需要打开) 关闭缓存重启后收看到报警: nginx: [alert] lua_code_cache is off; this will hurt performance in /usr/local/openresty/nginx/conf/lua.conf:7 重启服务: /usr/local/openresty/nginx/sbin/nginx -s reload ...
nginx: [alert] lua_code_cache is off; this will hurt performancein/usr/local/nginx/conf/nginx.conf:69 警告:这个alert是因为objstore.conf中把lua_code_cache为off;若设置为off,nginx不缓存lua脚本,每次改变lua代码,不必reload nginx即可生效;这便于开发和测试。但禁用缓存对性能有影响,故正式环境下一定记得...
lua_code_cache off; content_by_lua_file conf/lua/test.lua; } 开启后reload nginx会看到如下报警 nginx: [alert] lua_code_cache is off; this will hurt performance in /usr/servers/nginx/conf/lua.conf:8 7、错误日志 如果运行过程中出现错误,请不要忘记查看错误日志。
lua_code_cache off; content_by_lua_file conf/lua/test.lua; } 开启后reload nginx会看到如下报警 nginx: [alert] lua_code_cache is off; this will hurt performance in /usr/servers/nginx/conf/lua.conf:8 7、错误日志 如果运行过程中出现错误,请不要忘记查看错误日志。