Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

日志文件太大导致重启 #21

Open
butan2333 opened this issue Dec 16, 2024 · 2 comments
Open

日志文件太大导致重启 #21

butan2333 opened this issue Dec 16, 2024 · 2 comments

Comments

@butan2333
Copy link

butan2333 commented Dec 16, 2024

如题,日志文件太大导致/tmp分区和内存爆掉导致重启,现在我的解决办法是添加crontab每隔2小时清理文件和重启easytier服务。

0 */2 * * * rm /tmp/easytier-default.*
5 */2 * * * service easytier restart

服务脚本能做下定时清理日志文件吗?谢谢。

@rainpaper-bs
Copy link

关掉日志就行,一般没必要看

@butan2333
Copy link
Author

关掉日志就行,一般没必要看

谢谢,已解决,之前没注意有关掉日志这个选项。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants