码迷,mamicode.com
首页 > 系统相关 > 详细

Nginx_lua缓存问题,关闭lua_code_cache

时间:2018-01-16 14:02:26      阅读:283      评论:0      收藏:0      [点我收藏+]

标签:gpo   body   conf   不用   缓存   配置   nginx   ext   log   

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

Nginx_lua缓存问题,关闭lua_code_cache

标签:gpo   body   conf   不用   缓存   配置   nginx   ext   log   

原文地址:https://www.cnblogs.com/xiaoleiel/p/8295796.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!