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 # 移動日誌並更名
相關文章
相關標籤/搜索