首页
技术博客
登录
6mi
u
盘
搜
搜 索
技术博客
在linux下,假设nginx日志的路径为optlogsaccess.logs,日志不能自动分割,请写出一个简单的脚本,让日志每天能够定时自动分割
在linux下,假设nginx日志的路径为optlogsaccess.logs,日志不能自动分割,请写出一个简单的脚本,让日志每天能够定时自动分割
tech
2025-03-30
12
cp access.logs /tmp/$(date +%Y%m%d).access.logs echo > access.log
转载请注明原文地址:https://tech.qufami.com/read-21305.html
最新回复
(
0
)