以 .nfs 开头的 EFS 文件是什么?

0

【以下的问题经过翻译处理】 我正在尝试调试一个基于文件的PHP CMS,它不断尝试写入一个文件,但是失败了。我看到了以下内容:

-rw-r - r-- 1 webapp webapp 87717 Aug 2 09:01 response.cache
-rw-r - r-- 1 webapp webapp 167700 Aug 2 09:57 .nfs3bb62bc5d551a49f0000000c

有旧的文件response.cache和一个以“.nfs”开头的文件,其中包含更新的内容。我猜想是EFS正在写入文件,而其他PHP脚本实例尝试读取/写入它

profile picture
EXPERT
asked 5 months ago31 views
1 Answer
0

【以下的回答经过翻译处理】 在NFS上运行Linux时,当从文件系统中删除客户端正在打开的文件时,.nfs文件会被创建。客户端会将文件重命名为一串相对较长的字符串,以防止其他客户端或进程继续使用该文件。

通常,您可以使用lsof命令查找导致问题的进程,例如:

lsof .nfs3bb62bc5d551a49f0000000c

这将输出正在使用该文件的进程,如果必要,您可以随后关闭该进程。

profile picture
EXPERT
answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions