GameDatabaseService/bin/log_clean.sh

3 lines
201 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 把下面语句编辑到crontab里定时清理日志每天凌晨1点清理日志保留7天日志
0 1 * * * find /apprun/phoenix_ddos_handle/logs -mtime +7 -name "*.log.*" -exec rm -rf {} \;