nginx日志切割脚本
来源:互联网 发布:网吧免费上网软件 编辑:程序博客网 时间:2024/05/07 06:23
#!/bin/bashlog_name="down.access"log_path="/home/logs/"pid_file="/usr/local/nginx/logs/nginx.pid"date_fname=${log_name}_$(date -d "yesterday" +"%Y%m%d")log_path_name=${log_path}${date_fname}mv ${log_path}${log_name}.log ${log_path_name}.logkill -USR1 `cat ${pid_file}`tar -zcf ${log_path_name}.tar.gz ${log_path_name}.logrm -f ${log_path_name}.log
>crontab -e00 00 * * * bash /home/logs/nginx_auto_logs
- nginx日志切割脚本
- Nginx日志切割脚本
- nginx 日志切割脚本
- nginx日志切割脚本
- nginx日志切割脚本
- nginx日志定时切割脚本
- nginx log日志切割脚本
- Nginx日志定时切割脚本
- 编写定时切割Nginx日志脚本
- nginx日志切割脚本,自动压缩
- 每天定时切割nginx日志的脚本
- nginx自动切割日志访问文件脚本
- nginx日志按日期自动切割脚本
- bash shell 脚本 nginx日志切割
- Nginx 访问日志轮询切割脚本
- Linux系统nginx日志切割脚本
- nginx日志切割脚本,自动上传到日志服务器
- nginx 访问日志和错误日志按日切割sh脚本
- Wince6.0 下Camera(OV3640) 驱动开发全程记录
- The Recon-ng Framework : Automated Information Gathering
- MFC 类
- think in java interview-高级开发人员面试宝典(九)
- 职场中必需修炼的七项意识
- nginx日志切割脚本
- MFC定义的宏、全局函数及全局变量
- 远程网络安装linux服务器搭建
- 《Effective C++》简明笔记-中
- OSG场景漫游(二)
- CE6.0下高分辨率camera内存分配设置
- 图片下面出现空白像素的问题解决
- QPS、PV和需要部署机器数量计算公式
- MFC中DoDataExchange()的作用