问题
I have successfully installed neo4j with the port number 7474 and it works fine.
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?
I have tried to edit the file /etc/neo4j/neo4j-server.properties
in the line
org.neo4j.server.database.location=data/graph.db
but it doesn't work.
回答1:
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
.
来源:https://stackoverflow.com/questions/24202024/change-data-storing-location-in-neo4j-in-ubuntu