2

我想为我的网站使用 neo4j 图形数据库。我的网站和我的 neo4j 数据库不在同一台服务器上。如何从另一台服务器访问 neo4j 数据库?谁能帮我?

当我尝试像这样连接时,

GraphClient client = new GraphClient(new Uri("http://localhost:7474/db/data"));

它工作正常,但是当我尝试像这样连接时,

GraphClient client = new GraphClient(new Uri("http://xx.xx.xxx.xxx:7474/db/data"));

它无法连接。问题是什么?我该怎么办?

4

2 回答 2

2

Neo4J 默认配置为仅接受来自 127.0.0.1 的传入连接。

编辑您的conf/neo4j-server.properties文件,并确保您具有以下设置:

#allow any client to connect
org.neo4j.server.webserver.address=0.0.0.0

有关详细信息,请参阅http://docs.neo4j.org/chunked/milestone/server-configuration.html#_important_server_configurations_parameters

于 2012-11-26T21:49:49.090 回答
0

您可以在 EC2 教程截屏视频中找到此示例设置的视频:https ://vimeo.com/54142111

于 2012-11-27T09:42:39.360 回答