在Ubuntu中更改Neo4j中的数据存储位置 [英] Change data storing location in Neo4j in Ubuntu
问题描述
我已经成功安装了端口号为7474的neo4j,并且工作正常.
I have successfully installed neo4j with the port number 7474 and it works fine.
我的问题是数据存储在/var/lib/neo4j
中.此目录中的此位置很快就会满了.我想更改数据存储位置.这怎么可能?
My problem is the data is stored into /var/lib/neo4j
. This location in this directory is going to be full very soon. I want to change the data store location. How is this possible?
我试图在该行中编辑文件/etc/neo4j/neo4j-server.properties
I have tried to edit the file /etc/neo4j/neo4j-server.properties
in the line
org.neo4j.server.database.location=data/graph.db
但它不起作用.
推荐答案
尝试对org.neo4j.server.database.location
使用绝对路径,并确保该目录对于运行neo4j的用户可写.
另一种方法是将实际的graph.db
文件夹符号链接到/var/lib/neo4j
.
Try to use an absolute path for org.neo4j.server.database.location
and make sure the directory is writable for the user running neo4j.
An alternative is symlink your real graph.db
folder to /var/lib/neo4j
.
这篇关于在Ubuntu中更改Neo4j中的数据存储位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!