logrotate

作者: sunland_0416 | 来源:发表于2020-09-30 10:58 被阅读0次

logrotate手动调用执行

$/bin/bash/logrotate -vf /etc/logroate.d/testfile

也可以加入到crontab里定时执行

00 * * * * root /bin/bash/logrotate -vf /etc/logroate.d/testfile

上面命令可以每小时执行一次

suse Linux下的定时任务文件存放路径

/var/spool/cron/tabs

相关文章

网友评论

      本文标题:logrotate

      本文链接:https://www.haomeiwen.com/subject/aojuuktx.html