摘要:
在/home/data目录下创建 clear.sh脚本
# 内容如下:
#!/bin/sh
find /root/fastdfs/storag* -mtime + 30 -type f -name "*.png" -exec rm -rf {} \;
find /root/fastdfs/storag* -mtime + 30 -type f -name "*.jpg" -exec rm -rf {} \;
find /root/fastdfs/storag* -mtime + 30 -type f -name "*.mp4" -exec rm -rf {} \; 阅读全文