簡體   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