设置VPS日志轮转

查看日志大小

journalctl --disk-usage

设置日志轮转

sed -i 's/#SystemMaxUse=/SystemMaxUse=1G/' /etc/systemd/journald.conf && systemctl restart systemd-journald

删除全部日志

rm -rf /var/log/*
tag(s): VPS
show comments · back · home
Edit with markdown