繁体   English   中英

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

[英]How to connect to Neo4j server running on Windows machine from Ubuntu machine?

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

这是您需要做的:-

  1. 取消注释“org.neo4j.server.webserver.address”并提供一个有效的 IP 地址,您希望在您的 neo4j-server.properties 中的端口 7474 上绑定您的 Neo4j http 服务并重新启动您的 Neo4j 服务器。
  2. 尝试通过输入 URL - http://:7474/(不要使用本地主机)来访问本地机器上的 Neo4j 服务器。
  3. 关闭所有防火墙并确保 :7474 可从任何远程机器访问。 您也可以使用 Telnet 进行测试。

如果上述所有工作都完成了,那么您就可以从远程机器访问您的 Neo4j 服务器。

我认为您需要配置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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM