1.Nginx日志分割脚本1:#!/bin/shLOGS_PATH=/usr/local/nginx/logsYESTERDAY=$(date -d "yesterday" +%Y-%m-%d)mv ${LOGS_PATH}/access.log ${LOGS_PATH}/access_${YESTERDAY}.logmv ${LOGS_PATH}/error.log ${LOGS_PATH}/e
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号