linux定时清理日志
程序员文章站
2022-03-25 11:45:35
...
clearlog.sh
#!/bin/bash
# 清理30天前日志
find /app/logs -mtime +30 -type f -name *.log.gz -exec rm -f {} \;
上一篇: 若依最详细的配置(零基础,小白版)