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

Log file size appears not changed after cat /dev/null to log files #4159

Open
charmfocus opened this issue May 20, 2024 · 0 comments
Open

Log file size appears not changed after cat /dev/null to log files #4159

charmfocus opened this issue May 20, 2024 · 0 comments
Labels
area/logs Categorizes issue or PR as related to logs. feature Marks an issue or PR as related to a new feature.

Comments

@charmfocus
Copy link

charmfocus commented May 20, 2024

删除项目日志文件
cat /dev/null > access.log
后,查看access.log文件大小依然是原来大小,但du -hd1查看当前目录确实已经变小了
然而先del access.log后,再restart服务,access.log就正常了
希望能支持linux下可手工清理log

@kevwan kevwan changed the title 在服务器上直接清除日志文件显示大小不变 Log file size appears not changed after cat /dev/null to log files May 26, 2024
@kevwan kevwan added feature Marks an issue or PR as related to a new feature. area/logs Categorizes issue or PR as related to logs. labels May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/logs Categorizes issue or PR as related to logs. feature Marks an issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

2 participants