pve 删除运行日志

运行太久了 会越来越大。

1
ls /var/log/pveproxy/
1
access.log  access.log.1  access.log.2.gz  access.log.3.gz  access.log.4.gz  access.log.5.gz  access.log.6.gz

清理

1
2
3
4
5
6
rm -rf /var/log/*
mkdir /var/log/pveproxy
touch /var/log/pveproxy/access.log
chown -R www-data:www-data /var/log/pveproxy

systemctl restart pveproxy.service

删除历史命令

1
2
history -c
echo > $HOME/.bash_history
Licensed under CC BY-NC-SA 4.0
comments powered by Disqus
使用 Hugo 构建
主题 StackJimmy 设计