Structr, existing Neo4j installation and cypher shell

别来无恙 提交于 2019-12-20 01:42:18

问题


I have the following installations on my Windows 7 machine :

  1. Neo4j Community Edition 3.1.0
  2. Structr-ui-2.0.1

I had first installed Neo4j, then Structr UI.

I am able to run Structr UI and create a schema, add nodes and relationships.

I have the following questions :

  1. I guess that Structr starts and uses it's own, independent neo4j instance. Whenever I have my already-installed Neo4j started, Structr throws an exception saying the address 7474 is already bound
  2. I cannot connect to this 'internal' Neo4j instance from Cypher shell (using the bat file from my existing instance, providing port no. etc.)
  3. I wish to use both Structr UI as well as Cypher shell. The best way to do this is ask Structr to use my existing Neo4j instance rather than it's internal one

How shall I proceed ?


回答1:


  1. Yes, correct. Structr starts its own embedded Neo4j database, so if you start Neo4j first, Structr tries to bind to the same ports Neo4j does, and fails because the ports are already in use.

  2. Structr has no connector for the Cypher shell, so you won't be able to connect to the internal Neo4j instance.

  3. Use the latest Structr Snapshot (2.1) from https://structr.org/repositories/snapshots/org/structr/structr-ui/2.1.0-SNAPSHOT/structr-ui-2.1.0-20170202.205126-26-dist.zip. This version supports connecting to a remote Neo4j database using the following configuration settings in your structr.conf configuration file:

    database.driver.mode = remote
    database.connection.url = bolt://localhost:7687
    database.connection.username = neo4j
    database.connection.password = neo4j
    

You will have to adapt the above settings to fit your Neo4j installation.



来源:https://stackoverflow.com/questions/43571239/structr-existing-neo4j-installation-and-cypher-shell

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!