Linux下/var/log/messages占用空间过多的问题

问题: 服务器空间不足,发现/var/log/messages下的占用过多 方法 1、修改配置文件 修改rotate 后的保存日志份数 # egrep -v '#|^$' /etc/logrotate.conf weekly rotate 2 create dateext inclu

问题:

服务器空间不足,发现/var/log/messages下的占用过多

方法

1、修改配置文件

修改rotate 后的保存日志份数


# egrep -v '#|^$'  /etc/logrotate.conf 

weekly

rotate 2

create

dateext

include /etc/logrotate.d

LICENSED UNDER CC BY-NC-SA 4.0
Comment