#/var/log/mysqld.log {
# create 640 mysql mysql
# notifempty
# daily
# rotate 5
# missingok
# compress
# postrotate
# # just if mysqld is really running
# if test -x /usr/bin/mysqladmin && \
# /usr/bin/mysqladmin ping &>/dev/null
# then
# /usr/bin/mysqladmin flush-logs
# fi
# endscript
#}
Created
May 26, 2020 10:05
-
-
Save Linuxpizi/ca045dbd18f89c2da0d0aa316ed096c5 to your computer and use it in GitHub Desktop.
MySQL logrotate日志切割
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment