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