摘要: #!/bin/bash # 得到昨天日期YESTERDAY=`date -d yesterday +%Y%m%d` #备份昨天日志cp /software/nginx/logs/access.log /software/nginx/logs/access-$YESTERDAY.log #清空日志>/ 阅读全文
posted @ 2022-05-26 09:32 lidingyi 阅读(23) 评论(0) 推荐(0) 编辑