关闭。这个问题是off-topic .它目前不接受答案。
想改进这个问题? Update the question所以它是on-topic对于堆栈溢出。
10年前关闭。
Improve this question
我有一个通过 postfix 处理邮件的 ubuntu 服务器。服务器最近受到垃圾邮件的攻击,因此邮件日志非常大。日志与时间戳一起存储,我只是想知道我是否可以清除旧日志而不会恢复一些磁盘空间?
此外,对这些事情不太聪明,我正在努力寻找在哪里更改日志轮换和删除的设置......来自更多知识渊博的人的任何线索?
最佳答案
这是 serverfault.com 的问题吗?如果没有,请尝试 logrotate
.
根据 man logrotate
:
logrotate is designed to ease administration of systems that generate large
numbers of log files. It allows automatic rotation, compression, removal, and
mailing of log files. Each log file may be handled daily, weekly, monthly, or
when it grows too large.
关于email - 服务器邮件日志太大,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4431876/