实现环境:Linux服务器
crontab -e
0 0 * * sun cp /dev/null /usr/local/apache/log/access.log
每个周日晚上定时12点删除日志
man crontab