【问题标题】:Neo4j 3.0 setup issuesNeo4j 3.0 设置问题
【发布时间】:2016-04-30 08:24:36
【问题描述】:

在 neo4j 2.3.x 社区​​版中,我使用将 ip 地址设置为本地主机并更改端口以允许多个实例进行开发。

#org.neo4j.server.webserver.address=0.0.0.0
org.neo4j.server.webserver.port=7384

在启动实例时,我会收到一条带有 ip 和端口的确认消息。

Starting Neo4j Server...WARNING: not changing user
process [28531]... waiting for server to be ready........ OK.
http://localhost:7384/ is ready.

然后我会使用 shell 脚本和密码命令上传数据。

$neo/bin/neo4j-shell -path $neo/data/graph.db -file upload.cypher

在 neo4j 3.0 中,服务器设置略有变化。我打开了 HTTP 连接、CSV 导入和 shell 连接。

dbms.connector.http.enabled=true
dbms.connector.http.address=localhost:7384

dbms.shell.enabled=true
# dbms.shell.host=127.0.0.1
dbms.shell.port=1387

当我启动实例时,我收到以下消息,其中端口不正确。

Starting Neo4j.
Started neo4j (pid 28718). By default, it is available at http://localhost:7474/
There may be a short delay until the server is ready.

使用与 neo4j-2.3.x 相同的 shell 脚本上传数据效果很好,没有错误消息,我可以使用 neo4j-shell 查看数据。

./neo4j-3.0.0/bin/neo4j-shell -path neo4j-3.0.0/data/graph.db

但是,当我使用主机和端口连接时,我看不到任何数据。此外,当我使用 Web 界面连接时,我也看不到任何数据。

./neo4j-3.0.0/bin/neo4j-shell -host localhost -port 1387

我的数据库设置有什么问题吗? 谢谢!

【问题讨论】:

    标签: neo4j


    【解决方案1】:

    在 3.0 中,数据存储的位置已更改。 2.x 使用data/graph.db,在 3.0 中默认使用data/databases/graph.db。所以你想把你的安装脚本改成:

    ./neo4j-3.0.0/bin/neo4j-shell -path neo4j-3.0.0/data/databases/graph.db
    

    【讨论】:

    • 感谢您的回答。我觉得很愚蠢。事实上,在加载时我创建了一个 data/graph.db 数据库。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-12-18
    • 2011-06-15
    • 1970-01-01
    • 2011-08-30
    • 2011-02-25
    • 1970-01-01
    相关资源
    最近更新 更多