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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-26
  • 2021-04-19
  • 2022-12-23
猜你喜欢
  • 2021-12-18
  • 2022-12-23
  • 2021-09-15
  • 2021-07-13
  • 2022-12-23
  • 2022-12-23
  • 2021-08-09
相关资源
相似解决方案