简体   繁体   English

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

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

I am using Neo4j graph database.我正在使用 Neo4j 图形数据库。 Its running on Windows PC at url: http://localhost:7474/browser/ .它在 Windows PC 上运行,网址为: http://localhost:7474/browser/ Now I want to get access to this server from machine running Ubuntu OS, so that I can access Neo4j browser and can use it for development purpose as well.现在我想从运行 Ubuntu 操作系统的机器访问该服务器,以便我可以访问 Neo4j 浏览器并将其用于开发目的。

Here is what you need to do: -这是您需要做的:-

  1. Uncomment "org.neo4j.server.webserver.address" and provide a valid IP-Address on which you want to bind your neo4j http service at port 7474 in your neo4j-server.properties and restart your neo4j server.取消注释“org.neo4j.server.webserver.address”并提供一个有效的 IP 地址,您希望在您的 neo4j-server.properties 中的端口 7474 上绑定您的 Neo4j http 服务并重新启动您的 Neo4j 服务器。
  2. Try accessing you Neo4j server on local machine by entering URL - http://:7474/ (Do not use localhost).尝试通过输入 URL - http://:7474/(不要使用本地主机)来访问本地机器上的 Neo4j 服务器。
  3. Switch off all firewalls and ensure :7474 is accessible from any remote machine.关闭所有防火墙并确保 :7474 可从任何远程机器访问。 You may test it with Telnet too.您也可以使用 Telnet 进行测试。

In case all the above works then you are done and your Neo4j server is accessible from remote machine.如果上述所有工作都完成了,那么您就可以从远程机器访问您的 Neo4j 服务器。

I think you'll need to configure your conf/neo4j-server.properties file to allow access from non-localhost addresses.我认为您需要配置conf/neo4j-server.properties文件以允许来自非本地主机地址的访问。 Here's the relevant part of my file:这是我的文件的相关部分:

# 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.

相关问题 从Windows导入neo4j数据库到ubuntu - import neo4j database from windows to ubuntu 将neo4j数据库从Windows移动到Ubuntu - Moving neo4j database from Windows to Ubuntu 如何从 Ubuntu 生产服务器访问 Windows 机器上的 localhost 或 127.0.0.1? - How to access localhost or 127.0.0.1 on a Windows machine from Ubuntu Production Server? 在Windows上从python启动Neo4j 3.0.0服务器 - Start Neo4j 3.0.0 server from python on Windows Windows OS上来自python的Neo4j服务器API - Neo4j server API from python on a windows OS 无法连接到运行在 windows 10 虚拟机中的 postgresql 服务器 - Cant connect to postgresql server running in windows 10 virtual machine 如何在同一台计算机上安装Windows Server 2012和Ubuntu 16.04 Desktop - How to Install Windows Server 2012 and Ubuntu 16.04 Desktop on a Same Machine 在没有管理权限的Windows上运行neo4j - Running neo4j on windows without administrative rights Tableau + Vertica 6-如何将Tableau连接到Windows Server计算机上的Vertica 6 - Tableau + Vertica 6 - How to connect Tableau to Vertica 6 on a Windows Server Machine 如何从 Windows 机器中的 Docker 容器内部连接到本地主机上的 MySQL 服务器? - How to connect to MySQL server on localhost from inside of a Docker container in a windows machine?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM