1.安装jdk(有的话就不用装了)
yum install -y java-1.8.0-openjdk
2.下载neo4j安装包
wget http://dist.neo4j.org/neo4j-enterprise-3.2.13-unix.tar.gz
3.解压neo4j安装包
tar artifact.php?name=neo4j-enterprise-3.2.13-unix.tar.gz
4.修改conf/neo4j.conf
cd neo4j-enterprise-3.2.13/conf
vi neo4j.conf
gg
:.,$d
dbms.mode=HA
ha.server_id=1 # 主机1,从机2,3,...
ha.initial_hosts=121.42.138.49:5001,121.42.30.140:5001,139.129.227.182:5001 # 具体主从机全部IP
dbms.connectors.default_listen_address=0.0.0.0
5.cd 到bin 运行 ./neo4j start
cd ../bin
./neo4j start