![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
日志
最美dee时光
good good study
展开
-
nginx日志切割
方法1:通过logrotate工具切割 cat /etc/logrotate.d/nginx /usr/local/nginx/logs/*.log { daily rotate 7 missingok dateext compress delaycompress copytruncate notifempty create ...原创 2020-04-18 21:56:34 · 144 阅读 · 0 评论 -
日志清理脚本
日志文件清理:版本一 #!/bin/bash log_path=/u01/isi/DataArchitecture #log_path=/home cd $log_path find $log_path -name "*.log" > .del.dat find $log_path -name "*.log.*" >> .del.dat find $log_path -name ...原创 2020-04-18 21:41:08 · 417 阅读 · 0 评论