(节点)命中最大文件限制?

kid*_*tal 5 linux ulimit node.js

我一直在我的node.js实例中收到错误报告错误:

(node) Hit max file limit. Increase "ulimit - n"
Run Code Online (Sandbox Code Playgroud)

然而,当我检查我的ulimit -n时,它说65535.我的应用程序无法打开65535连接.有没有人对还有什么要检查有任何建议?

干杯

yoj*_*o87 2

您可以尝试在/etc/security/limits.conf文件中设置限制。这是设置文件内限制的“如何”指南(在您的情况下,它应该是nofile值)。