neo4j企业版3.4.0集群搭建

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/onlyoncelove/article/details/80427282

假设Ubuntu安装好,ssh搭建好,host已经修改(可参见另一篇文章)

每个虚拟机修改neo4j的配置文件neo4j.conf

Neo4j主节点配置:

dbms.backup.enabled=true
dbms.backup.address=0.0.0.0:6362
dbms.connectors.default_listen_address=0.0.0.0
dbms.connector.bolt.enabled=true
dbms.connector.bolt.listen_address=:7687
dbms.connector.http.enabled=true
dbms.connector.http.listen_address=:7474
dbms.connector.https.enabled=true
dbms.connector.https.listen_address=:7473
dbms.mode=HA
ha.server_id=8
ha.initial_hosts=192.168.1.10:5001,192.168.1.11:5001,192.168.1.12:5001,192.168.1.13:5001,192.168.1.14:5001,192.168.1.15:5001,192.168.1.16:5001,192.168.1.17:5001
ha.pull_interval=30
dbms.security.ldap.authentication.user_dn_template`.
dbms.shell.enabled=true
dbms.shell.host=0.0.0.0
dbms.shell.port=1337
dbms.jvm.additional=-XX:+UseG1GC
dbms.jvm.additional=-XX:-OmitStackTraceInFastThrow
dbms.jvm.additional=-XX:+AlwaysPreTouch
dbms.jvm.additional=-XX:+UnlockExperimentalVMOptions
dbms.jvm.additional=-XX:+TrustFinalNonStaticFields
dbms.jvm.additional=-XX:+DisableExplicitGC
dbms.jvm.additional=-Djdk.tls.ephemeralDHKeySize=2048
dbms.jvm.additional=-Djdk.tls.rejectClientInitiatedRenegotiation=true
dbms.windows_service_name=neo4j
dbms.jvm.additional=-Dunsupported.dbms.udc.source=tarball

Neo4j其它节点配置:
Ha.mode=HA
Ha.server_id=1
Ha.initial_hosts=IP1:5001,IP2:5001,IP3:5001
Ha.pull_interval=30
Neo4j-02:
Ha.mode=HA
Ha.server_id=2
Ha.initial_hosts=IP1:5001,IP2:5001,IP3:5001
Ha.pull_interval=30

展开阅读全文

没有更多推荐了,返回首页