nginx按日期存储日志

欢迎加入,新群号码:99640845 首先写一个sh的文件autolog.shnginx #!/bin/sh # Program: # Auto cut nginx log script. LOGS_PATH=/home/wwwlogs/ #你的日志目录 TODAY=$(date -d 'yesterday' +%Y-%m-%d-%H) #TODAY=history # 移动日志并更名
相关文章
相关标签/搜索