# nginx日志切割
0 3 1 * * /usr/bin/sh /datas/soft/shell/mv_nginx_log.sh
# cat /datas/soft/shell/mv_nginx_log.sh
#!/bin/bash rm -rf /datas/logs/nginx/bak_*; mkdir /datas/logs/nginx/bak_`date +%Y%m%d`; mv /datas/logs/nginx/*.log /datas/logs/nginx/bak_`date +%Y%m%d`; systemctl reload openresty;