用户目录下的nodePipe.sock文件是什么?

/ 0评 / 2

今天通过终端命令(ls -l)在用户目录下发现了以nodePipe开头的.sock文件。但在Finder下并看不到。

➜  ~ # ls -l | grep nodePipe
srwxr-xr-x   1 frank  staff     0B  3  1  2019 nodePipe16048.sock
srwxr-xr-x   1 frank  staff     0B  3 11  2019 nodePipe41391.sock
srwxr-xr-x   1 frank  staff     0B  6 24 17:16 nodePipe45897.sock
srwxr-xr-x   1 frank  staff     0B  6 24 17:26 nodePipe46084.sock
srwxr-xr-x   1 frank  staff     0B  6 26 14:29 nodePipe62602.sock
srwxr-xr-x   1 frank  staff     0B  6 26 14:30 nodePipe63062.sock
srwxr-xr-x   1 frank  staff     0B  3  1  2019 nodePipe68561.sock
srwxr-xr-x   1 frank  staff     0B  3  1  2019 nodePipe68655.sock
srwxr-xr-x   1 frank  staff     0B  3  1  2019 nodePipe717.sock

Google搜了一下,在superuser有人提出了同样的问题(貌似还是中国人),并且有人作答。Link

It is safe to remove it.

I encountered the same problem and did a little research. I believe this is somehow related to the problem described in this page.

Your username suggests that you are a Chinese developer as I am, and it is very likely that you used the wechatdevtools (offered by the Chinese tech company Tencent) to develop WeChat mini-programs.

Turns out the problem is probably caused by using the wechatwebdevtools app on linux/macOS and debugging a WeChat mini-program. Every time the node module is run by the wechatwebdevtools, it creates a nodePipe${parentPid}.sock file in the Unix home directory. In most cases, these files should be deleted automatically, but not always.

Hence I believe it is safe to manually delete these files.

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注