Linux-Tutorial icon indicating copy to clipboard operation
Linux-Tutorial copied to clipboard

请问docker里面的nginx logrotate如何配置?

Open zhangdp opened this issue 6 years ago • 0 comments

进入nginx容器内,本身已经存在logrotate配置文件,但不知道如何运行它,定时启动它? root@bd354287bf13:/etc/logrotate.d# cat nginx /var/log/nginx/*.log { daily missingok rotate 52 compress delaycompress notifempty create 640 nginx adm sharedscripts postrotate if [ -f /var/run/nginx.pid ]; then kill -USR1 cat /var/run/nginx.pid fi endscript }

zhangdp avatar Feb 22 '19 03:02 zhangdp