h2数据库集群部署,备份及恢复

h2数据库集群部署

一. 环境准备

  • 准备两台机器,分别为Server1 , Server2

二. h2数据库安装

  • 下载地址
http://h2database.com/html/download.html
  • 将下载的压缩包解压到指定目录
cd /opt
uzip h2-2019-10-14.zip
  • 创建储备数据目录
Server1:
	mkdir /opt/h2/bin/h2ser1
Server2:
	mkdir /opt/h2/bin/h2ser1
  • 配置启动文件h2.sh
Server1:
	vim /opt/h2/bin/h2.sh
	java -cp "$dir/h2-1.4.200.jar:$H2DRIVERS:$CLASSPATH" org.h2.tools.Server -tcpAllowOthers -tcpPort 9101 -webAllowOthers -webPort 8082 -baseDir /opt/h2/bin/h2ser1 -ifNotExists "$@"

Server2:
	vim /opt/h2/bin/h2.sh
	java -cp "$dir/h2-1.4.200.jar:$H2DRIVERS:$CLASSPATH" org.h2.tools.Server -tcpAllowOthers -tcpPort 9101 -webAllowOthers -webPort 8082 -baseDir  /opt/h2/bin/h2ser2 -ifNotExists "$@"

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值