waf icon indicating copy to clipboard operation
waf copied to clipboard

修改config_log_dir后无日志产生

Open Lyuke-liu opened this issue 3 years ago • 2 comments

修改了config.lua下的config_log_dir,重载nginx后未生效,原/tmp目录下也无日志 环境说明 CentOS Linux release 7.6.1810 nginx-1.18.0 openresty-1.17.8.2 ngx_devel_kit-0.3.0 LuaJIT-2.0.5 lua-nginx-module-0.10.10

Lyuke-liu avatar Sep 22 '20 01:09 Lyuke-liu

我也遇过类似问题。手动创建用来的存放日志的目录。保证nginx对目录有访问权限。最后在 config.lua 修改 config_log_dir

pic2debug avatar Oct 05 '20 13:10 pic2debug

目标权限需要worker进程能读写。

aceslup avatar Aug 27 '22 12:08 aceslup