对于syslog保存的日志会有很多重要信息,但是一旦打印的日志数量超过设置的阈值,就会丢掉( imuxsock[pid 48]: begin to drop messages due to rate-limiting);这是在调试时不愿看到的;可以通过以下方式解除这个限制:
1. 编辑/etc/systemd/journald.conf文件
#RateLimitInterval=30s
#RateLimitBurst=1000
改为(表示30s内打印不超过1000行,设置为0取消限制):
RateLimitInterval=0
RateLimitBurst=0
重启服务:systemctl restart systemd-journald.service
2. 编辑/etc/rsyslog.conf文件
将以下配置设置为0
$SystemLogRateLimitInterval 0
$SystemLogRateLimitBurst 0
重启服务:systemctl restart rsyslog.service