neo4j和max打开文件 [英] 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
并添加以下两行:
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服务器设置
这篇关于neo4j和max打开文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!