按天生成nginx日志,按期清楚日志

建立脚本cut_nginx_logs.shnginx #!/bin/bash #function:切割日志 #设置日志路径 log_files_path="/home/wwwlogs/" log_files_dir=${log_files_path}$(date -d "yesterday" +"%Y")/$(date -d "yesterday" +"%m") #要切割的日志名称,多
相关文章
相关标签/搜索