/var/log/journal日志清理

2022-04-14

/var/log/journal日志清理

1、du -sh /var/log发现很大
2、journalctl --disk-usage
journalctl --vacuum-size=100M
journalctl --disk-usage

journalctl --vacuum-time=1w

3、
#/etc/systemd/journald.conf
#SystemMaxUse=16M
#ForwardToSyslog=no
systemctl restart systemd-journald.service

4、
journalctl --verify
5、systemd-journald耗尽cpu

# systemctl mask systemd-journald
Created symlink /etc/systemd/system/systemd-journald.service → /dev/null.

分类:Linux | 标签: |

相关日志

评论被关闭!