We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
来自于同学实习中遇到的问题
rm -rf dir-name
The text was updated successfully, but these errors were encountered:
No branches or pull requests
问题:3TB的日志文件,实现定时清理
rm -rf dir-name
删除一个文件数很大的文件夹,会占用大量系统资源,造成整个系统的卡顿方案:设置一个定时任务,删除50天以前的日志文件,运行频率为每天一次
建议的做法是在启动该定时任务前手动删除所有日志文件或者至少删除超过50天的日志文件。
The text was updated successfully, but these errors were encountered: