如何从Ubuntu机器连接到Windows机器上运行的Neo4j服务器?

时间:2015-11-27 05:16:47

标签: windows ubuntu neo4j graph-databases

我正在使用Neo4j图形数据库。它在Windows PC上以url:http://localhost:7474/browser/运行。现在我想从运行Ubuntu操作系统的机器上访问这个服务器,这样我就可以访问Neo4j浏览器并将其用于开发目的。

2 个答案:

答案 0 :(得分:1)

以下是您需要做的事情: -

  1. 取消注释“org.neo4j.server.webserver.address”并提供一个有效的IP地址,您要在neo4j-server.properties中的端口7474上绑定neo4j http服务,然后重新启动neo4j服务器。
  2. 尝试输入网址 - http://:7474 /(不要使用localhost),尝试在本地计算机上访问Neo4j服务器。
  3. 关闭所有防火墙并确保:可以从任何远程计算机访问7474。您也可以使用Telnet进行测试。
  4. 如果以上所有工作都已完成,您可以从远程计算机访问您的Neo4j服务器。

答案 1 :(得分:0)

我认为您需要配置conf/neo4j-server.properties文件以允许从非本地主机地址进行访问。这是我文件的相关部分:

# Let the webserver only listen on the specified IP. Default is localhost (only
# accept local connections). Uncomment to allow any connection. Please see the
# security section in the neo4j manual before modifying this.
#org.neo4j.server.webserver.address=0.0.0.0