Enterprises nginx 로그 절단 소계 #!/bin/bash ## Nginx LOGS_PATH=/usr/local/nginx/logs/ TODAY=$(date +%Y-%m-%d) LASTHOUR=$(date +%Y-%m-%d:%H -d '-1 hours') FILE_PATH=$LOGS_PATH$TODAY # if [ ! -x "$FILE_PATH" ] then mkdir $FILE_PATH fi # mv ${LOGS... accesserrorlocalEnterprises
nginx 로그 절단 소계 #!/bin/bash ## Nginx LOGS_PATH=/usr/local/nginx/logs/ TODAY=$(date +%Y-%m-%d) LASTHOUR=$(date +%Y-%m-%d:%H -d '-1 hours') FILE_PATH=$LOGS_PATH$TODAY # if [ ! -x "$FILE_PATH" ] then mkdir $FILE_PATH fi # mv ${LOGS... accesserrorlocalEnterprises