We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
进入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 }
cat /var/run/nginx.pid
The text was updated successfully, but these errors were encountered:
No branches or pull requests
进入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
}
The text was updated successfully, but these errors were encountered: