标签:access date nta 切割 reload sbin code log span
VM_60_153_sles10_64:~ # cat /data/scripts/cut_nginx_log.sh #!/bin/bash date=`date +%Y%m%d` /bin/mv /data/nginx_logs/access.log /data/nginx_logs/${date}_access.log /bin/mv /data/nginx_logs/error.log /data/nginx_logs/${date}_error.log /usr/local/nginx/sbin/nginx -s reload
VM_60_153_sles10_64:~ # chmod +x /data/scripts/cut_nginx_log.sh VM_60_153_sles10_64:~ # crontab -l 00 00 * * * /data/scripts/cut_nginx_log.sh > /dev/null 2>&1
标签:access date nta 切割 reload sbin code log span
原文地址:http://www.cnblogs.com/pzk7788/p/7697707.html