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程序


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM