问题
I have the following installations on my Windows 7 machine :
- Neo4j Community Edition 3.1.0
- 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 :
- 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
- I cannot connect to this 'internal' Neo4j instance from Cypher shell (using the bat file from my existing instance, providing port no. etc.)
- 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:
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.
Structr has no connector for the Cypher shell, so you won't be able to connect to the internal Neo4j instance.
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