从Neo4j桌面版启动多个neo4j服务器

3
我最近下载并成功使用了“neo4j桌面版”(版本1.0.10),它允许您创建和管理不同的项目和数据库。
我需要同时生成两个数据库实例。我从配置中更改了它们的端口,可以在这些端口上成功启动它们,但不能同时启动。
当我按下一个服务器的启动按钮时,另一个服务器会自动停止。
在neo4j桌面版上是否可能使用这样的功能?还是应该使用普通的neo4j服务器安装?

1
我遇到了类似的问题,我得出结论:我们不能使用Neo4J桌面应用程序来完成这个任务。 - Utsav Chokshi
1个回答

2

是的,你不能从Neo4J桌面应用程序同时运行多个项目。 你需要使用neo4j server来实现这一点。 我所做的是:

  1. Download Neo4J server(Community Release) from here
  2. Unzip the tar
  3. Copy unzipped directory to two different locations.
  4. Updated following configurations in conf/neo4j.conf file for both directories (with different values obviously !) :

     dbms.active_database=<name-of-db-dir>
     dbms.directories.data=<path-to-dir>
     # Bolt connector
     dbms.connector.bolt.enabled=true
     #dbms.connector.bolt.tls_level=OPTIONAL
     dbms.connector.bolt.listen_address=localhost:XXXX
    
     # HTTP Connector. There must be exactly one HTTP connector.
     dbms.connector.http.enabled=true
     dbms.connector.http.listen_address=localhost:XXXX
    
     # HTTPS Connector. There can be zero or one HTTPS connectors.
     dbms.connector.https.enabled=true
     dbms.connector.https.listen_address=localhost:XXXX
    
  5. start Neo4J server from respective directories using command : ./bin/neo4j start.

  6. It will start Neo4j server at specified ports on localhost !


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接