zoukankan      html  css  js  c++  java
  • Neo4j 高可用集群安装

    安装neo4j高可用集群,抓图安装过程

    http://www.ibm.com/developerworks/cn/java/j-lo-neo4j/

       

    Step1.下载neo4j商业版并解压,复制为neo4j01,neo4j02,neo4j03

    Step2.修改neo4j.properties 文件和neo4j-server.properties文件,

    按照neo4j manual上面的要求修改即可.

    The following settings should be configured for each Neo4j installation.
    
    Neo4j instance #1—~/neo4j-01
    
    conf/neo4j.properties:
    
    Unique server id for this Neo4j instance
    
    can not be negative id and must be unique
    
    ha.server_id = 1
    
    IP and port for this instance to bind to for communicating data with the
    
    other neo4j instances in the cluster.
    
    ha.server = 127.0.0.1:6363
    
    online_backup_server = 127.0.0.1:6366
    
    IP and port for this instance to bind to for communicating cluster information
    
    with the other neo4j instances in the cluster.
    
    ha.cluster_server = 127.0.0.1:5001
    
    List of other known instances in this cluster
    
    ha.initial_hosts = 127.0.0.1:5001,127.0.0.1:5002,127.0.0.1:5003
    
    conf/neo4j-server.properties
    
    database location
    
    org.neo4j.server.database.location=data/graph.db
    
    http port (for all data, administrative, and UI access)
    
    org.neo4j.server.webserver.port=7474
    
    High Availability
    
    424
    
    https port (for all data, administrative, and UI access)
    
    org.neo4j.server.webserver.https.port=7484
    
    HA - High Availability
    
    SINGLE - Single mode, default.
    
    org.neo4j.server.database.mode=HA
    
    Neo4j instance #2—~/neo4j-02
    
    conf/neo4j.properties:
    
    Unique server id for this Neo4j instance
    
    can not be negative id and must be unique
    
    ha.server_id = 2
    
    IP and port for this instance to bind to for communicating data with the
    
    other neo4j instances in the cluster.
    
    ha.server = 127.0.0.1:6364
    
    online_backup_server = 127.0.0.1:6367
    
    IP and port for this instance to bind to for communicating cluster information
    
    with the other neo4j instances in the cluster.
    
    ha.cluster_server = 127.0.0.1:5002
    
    List of other known instances in this cluster
    
    ha.initial_hosts = 127.0.0.1:5001,127.0.0.1:5002,127.0.0.1:5003
    
    conf/neo4j-server.properties
    
    database location
    
    org.neo4j.server.database.location=data/graph.db
    
    http port (for all data, administrative, and UI access)
    
    org.neo4j.server.webserver.port=7475
    
    https port (for all data, administrative, and UI access)
    
    org.neo4j.server.webserver.https.port=7485
    
    HA - High Availability
    
    SINGLE - Single mode, default.
    
    org.neo4j.server.database.mode=HA
    
    Neo4j instance #3—~/neo4j-03
    
    conf/neo4j.properties:
    
    Unique server id for this Neo4j instance
    
    can not be negative id and must be unique
    
    ha.server_id = 3
    
    IP and port for this instance to bind to for communicating data with the
    
    other neo4j instances in the cluster.
    
    ha.server = 127.0.0.1:6365
    
    online_backup_server = 127.0.0.1:6368
    
    IP and port for this instance to bind to for communicating cluster information
    
    with the other neo4j instances in the cluster.
    
    ha.cluster_server = 127.0.0.1:5003
    
    List of other known instances in this cluster
    
    ha.initial_hosts = 127.0.0.1:5001,127.0.0.1:5002,127.0.0.1:5003
    
    conf/neo4j-server.properties
    
    database location
    
    High Availability
    
    425
    
    org.neo4j.server.database.location=data/graph.db
    
    http port (for all data, administrative, and UI access)
    
    org.neo4j.server.webserver.port=7476
    
    https port (for all data, administrative, and UI access)
    
    org.neo4j.server.webserver.https.port=7486
    
    HA - High Availability
    
    SINGLE - Single mode, default.
    
    org.neo4j.server.database.mode=HA
    View Code

    Step3:启动

    [student@NameNode ~]$ neo4je03/bin/neo4j start

    WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See the Neo4j manual.

    Using additional JVM arguments: -server -XX:+DisableExplicitGC -Dorg.neo4j.server.properties=conf/neo4j-server.properties -Djava.util.logging.config.file=conf/logging.properties -Dlog4j.configuration=file:conf/log4j.properties -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled

    Starting Neo4j Server...WARNING: not changing user

    HA instance started in process [7462]. Will be operational once connected to peers. See /home/student/neo4je03/data/log/console.log for current status.

    [student@NameNode ~]$ jps

    7475 Jps

    7462 Bootstrapper

    [student@NameNode ~]$

       

       

       

       

    Looking for a job working at Home about MSBI
  • 相关阅读:
    【Python高级编程034 ● 静态web服务器 ● 静态Web服务器-返回固定页面数据】
    【Python高级编程033 ● 静态web服务器 ● 搭建Python自带静态Web服务器】
    【Python高级编程032 ● http协议 ● http响应报文】
    【Python高级编程031 ● http协议 ● http请求报文】
    做更好的自己:如何下得细功夫
    抓取图片视频等资源链接地址的Python小工具
    互联网应用服务端的常用技术思想与机制纲要
    《反脆弱》读书笔记
    错误启示录
    碎碎念集萃三九
  • 原文地址:https://www.cnblogs.com/huaxiaoyao/p/3521496.html
Copyright © 2011-2022 走看看