centos 7 取消LOG输出限制

前端之家收集整理的这篇文章主要介绍了centos 7 取消LOG输出限制前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

Add the following to /etc/rsyslog.conf after '$ModLoad imuxsock' and '$ModLoad imjournal':

  1. $IMUXSockRateLimitInterval 0
  2. $IMJournalRatelimitInterval 0

Set the following in /etc/systemd/journald.conf:

  1. Storage=volatile
  2. Compress=no
  3. RateLimitInterval=0
  4. MaxRetentionSec=5s

Restart journald and rsyslog to pickup the changes with:

  1. systemctl restart systemd-journald.service
  2. systemctl restart rsyslog.service

猜你在找的CentOS相关文章