感觉是进程占用了文件句柄,导致无法有效的释放了。
不行的话可以尝试:先停掉服务,在删除文件,在启动
例如: systemctl stop prometheus delete 文件数据… systemctl start prometheus