neo4j 和最大打开文件 [英] neo4j and max open files
问题描述
我在 ubuntu 上使用 neo4j 1.8M06.当我启动它时,我收到此警告:
I'm using neo4j 1.8M06 on ubuntu. When I start it, I get this warning:
WARNING: Max 1024 open files allowed, minimum of 40 000 recommended.
是什么意思?如果需要,我该如何调整这个设置?
what does it mean? If it is required, how can I adjust this setting?
我已经在这个问题上看到了这个主题,但是还是没看懂.
I've seen this thread on the issue but still could not understand it.
推荐答案
这意味着您只能打开1024"(默认)文件进行写入.但是NEO4J
推荐这个值是40K
.这可以通过如下所述的修复来实现.
It means that you can open only '1024'(default) files for writing. But NEO4J
recommends this value to be 40K
. This can be achieved with the fix as described below.
编辑 /etc/security/limits.conf
并添加以下两行:
Edit /etc/security/limits.conf
and add these two lines:
root soft nofile 40000
root hard nofile 40000
neo4j 在这里推荐使用neo4j"代替root".那行不通.
The neo4j recommends "neo4j" in place of "root" here. That won't work.
您还需要编辑 /etc/pam.d/common-session*
并在末尾添加以下行:
You also need to edit /etc/pam.d/common-session*
and add the following line to the end:
session required pam_limits.so
是的,最后你必须重新启动 NEO4J.
And yes, finally you've to restart NEO4J.
sudo service neo4j-service restart
这篇关于neo4j 和最大打开文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!