Nginx_lua缓存问题,关闭lua_code_cache

打开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.cof:87
注意:重启nginx会有警告不用管它
修改完成,这样就可以不需要重启nginx情况下实时访问lua程序

posted @ 2018-01-16 11:45  追忆丶年华  阅读(7496)  评论(0编辑  收藏  举报