WARNING: Max 1024 open files allowed, minimum of 40000 recommended. See the Neo4j manua警告:允许最多1024个打

When you restart your service you’ll notice this warning:
当您重新启动服务时,您会注意到此警告:

WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See the Neo4j manual.
警告:允许最多1024个打开文件,建议最少40000个。看看Neo4j manua
实际上需要最低机器服务

To fix this, edit this file
要解决此问题,请编辑此文件

sudo nano /etc/security/limits.conf
and add these two entries:
并添加这两个条目:

root soft nofile 40000
root hard nofile 40000
neo4j soft nofile 40000
neo4j hard nofile 40000
panos soft nofile 40000
panos hard nofile 40000

I add an entry for all three users root, neo4j
我为所有三个用户添加了一个条目 root, neo4j

and panos, but you actually just need the one that you’ll use when you restart the service. Then edit
而且 panos,您实际上只需要在重新启动服务时使用的那个。然后编辑

sudo nano /etc/pam.d/su

uncomment this line
取消注释这一行

session required pam_limits.so
会话需要pam_limits.so

and restart your server (your machine not the service). //改完要重啟機器

Now if you do
现在,如果你这样做

sudo service neo4j-service restart

the warning should have disappeared.
警告应该已经消失。

你可能感兴趣的:(Neo4j)