step 1:在虚拟机centos上新建用户jdorientdb,下载orientdb包解压到 /software/orientdb目录
step 2:设置ORIENTDB_HOME环境变量
|
|
step 3:修改config/orientdb-server-config.xml,设置用户登录密码
|
|
step 4:修改bin/orientdb.sh
orientdb启动默认需要root权限,修改配置去除root权限限制1234567891011# You have to SET the OrientDB installation directory hereORIENTDB_DIR="$ORIENTDB_HOME"ORIENTDB_USER="jdorientdb"start方法中注释root权限执行:#su $ORIENTDB_USER -c "cd \"$ORIENTDB_DIR/bin\"; /usr/bin/nohup ./server.sh 1>$LOG_DIR/orientdb.log 2>$LOG_DIR/orientdb.err &stop方法中注释root权限执行:#su $ORIENTDB_USER -c "cd \"$ORIENTDB_DIR/bin\";/usr/bin/nohup ./shutdown.sh 1>>$LOG_DIR/orientdb.log 2>>$LOG_DIR/orientdb.err &
step 5:配置集群中各节点发现服务,修改configh/azecast.xml
|
|
step6:修改config/default-distributed-db-config.json
|
|
step 7:每台虚拟机分别设置ip别名,修改/etc/hosts
|
|
step 8:将配置好的orientdb分别发送到其他虚拟机
|
|
step 9:分别启动每台虚拟机上的orientdb进程
|
|
Reference:
1.Distributed-Configuration
2.http://blog.topspeedsnail.com/archives/1884
3.Performance-Tuning