1.手动删除
echo /dev/null > /var/log/syslog
2.采用journald服务 https://itlanyan.com/clear-systemd-journal-logs/
/etc/systemd/journald.conf
[Journal] #Storage=auto #Compress=yes #Seal=yes #SplitMode=uid #SyncIntervalSec=5m #RateLimitInterval=30s #RateLimitBurst=1000 SystemMaxUse=1G #SystemKeepFree= #SystemMaxFileSize= #RuntimeMaxUse= #RuntimeKeepFree= #RuntimeMaxFileSize=
sudo systemctl restart systemd-journald
3.logrotate
https://www.coder.work/article/176202
标签:systemd,占满,磁盘空间,journald,syslog,https,yes From: https://www.cnblogs.com/tiange-137/p/17349456.html