使用默认设置,我可以毫无问题地启动Neo4j。
现在,我尝试将Neo4j数据存储在外部硬盘驱动器的文件夹中,因为我的本地计算机上没有足够的空间来进行导入。
因此,在我的neo4j.conf中,我设置了:dbms.directories.data=/Volumes/INTENSO/richRich/neo4j-data
。然后在neo4j start
上创建一个databases
文件夹,但是数据库在启动后立即关闭。这是我从debug.log stacktrace中认为有用的东西:
...
2018-07-22 11:25:55.745+0000 INFO [o.n.k.i.DiagnosticsManager] --- INITIALIZED diagnostics END ---
2018-07-22 11:25:55.912+0000 INFO [o.n.b.BoltKernelExtension] Bolt Server extension loaded.
2018-07-22 11:25:56.069+0000 INFO [o.n.k.i.s.f.RecordFormatSelector] Selected format 'RecordFormat:StandardV3_4[v0.A.9]' for the new store
2018-07-22 11:25:56.118+0000 WARN [o.n.k.NeoStoreDataSource] Exception occurred while setting up store modules. Attempting to close things down. Unable to open store file: /Volumes/INTENSO/richRich/neo4j-data/databases/graph.db/neostore.nodestore.db.labels
org.neo4j.kernel.impl.store.UnderlyingStorageException: Unable to open store file: /Volumes/INTENSO/richRich/neo4j-data/databases/graph.db/neostore.nodestore.db.labels
...
Caused by: org.neo4j.io.pagecache.impl.FileLockException: Already locked: /Volumes/INTENSO/richRich/neo4j-data/databases/graph.db/neostore.nodestore.db.labels
...
我检查了/Volumes/INTENSO/richRich/neo4j-data/databases/graph.db/neostore.nodestore.db.labels
,文件在那里。我还制作了chmod -R 777,以确保没有权限问题。
OS:最新的MacOS Neo4j:3.4.4社区版