【发布时间】:2016-09-11 04:23:19
【问题描述】:
我最近使用导入工具成功创建了一个新的 neo4j 数据库。现在,我想实际访问我的 Ubunutu 笔记本电脑上的数据库。
为此,我适当地编辑了conf/neo4j-server.properties,以指向正确的位置。
在尝试sudo service neo4j-service start 时,我得到了错误
WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See the Neo4j manual.
Starting Neo4j Server...WARNING: not changing user
process [10810]... waiting for server to be ready.. Failed to start within 120 seconds.
Neo4j Server may have failed to start, please check the logs.
我查看了日志,发现很多关于权限的抱怨。
从日志中,
2016-05-15 01:58:31.143-0700 ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@1b68b9a4' was successfully initialized, but failed to start. Please see attached cause exception.
...
Caused by: java.lang.RuntimeException: java.io.FileNotFoundException: /home/monica/new_database_directory/messages.log (Permission denied)
...
Caused by: java.lang.RuntimeException: java.io.FileNotFoundException: /home/monica/new_database_directory/messages.log (Permission denied)
Caused by: java.lang.RuntimeException: java.io.FileNotFoundException: /home/monica/new_database_directory/messages.log (Permission denied)
四处搜索,我发现其他一些人遇到了这个问题。
但是,我不确定如何继续,因为我不完全理解问题所在。我不明白 neo4j 期望如何使用。何时何地指定用户?我是否需要在某处更改 Neo4J 配置文件以允许自己获得许可?或者我是否需要更改我刚刚创建的目录的权限...如果是这样,我如何知道将其更改为哪个用户?
我有兴趣了解更多关于在这种情况下如何配置 neo4j 的信息,而不仅仅是如何让它为我工作。非常感谢任何建议。
【问题讨论】: