我是靠谱客的博主 冷静铅笔,最近开发中收集的这篇文章主要介绍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 ~]$

   

   

   

   

转载于:https://www.cnblogs.com/huaxiaoyao/p/3521496.html

最后

以上就是冷静铅笔为你收集整理的Neo4j 高可用集群安装的全部内容,希望文章能够帮你解决Neo4j 高可用集群安装所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(47)

评论列表共有 0 条评论

立即
投稿
返回
顶部