定期清理缓存的脚本

#!/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
~

posted @ 2023-08-12 17:33  乐乐和笑笑  阅读(43)  评论(0编辑  收藏  举报