nginx日誌按天分割

#!/bin/bash   #Rotate the Nginx logs to prevent a single logfile from consuming too much disk space.    LOGS_PATH=/data/logs/nginx YESTERDAY=$(date -d "yesterday" +%Y-%m-%d) cd /data/logs/nginx/ ACCES
相關文章
相關標籤/搜索