定期清理缓存的脚本

乐乐和笑笑 / 2023-08-12 / 原文

#!/usr/bin/bash
#write by futd at 20230812
rm -rf /var/cache/nginx/proxy_cache/*
sleep 10
ls /var/cache/nginx/proxy_cache/
sleep 10
service nginx restart
#sleep 10
#service webvpnbc restart
echo "work is ok!"

echo "work is ok!" >> /root/log.del
date >> /root/log.del
echo  "************************************" >>/root/log.del
~