[gbase@localhost deploy]$ tar xvf GBase8cV5_S2.0.0B17.tar.gz
每次解压完压缩包后,都需要执行一下bin目录的gb_install.sh(如果同一目录多次执行,需要删除.gb_install.sh.completed):
[gbase@localhost deploy]$ /home/gbase/deploy/bin/gb_install.sh
gha_ctl SET INSTALL version GBase8cV5_XXX.tar.gz installpath [-c cluster] [-p confpath]
具体部署命令如下:
[gbase@localhost ~]$ /home/gbase/deploy/bin/gha_ctl set install GBase8cV5_S2.0.0B17 /home/gbase/deploy/GBase8cV5_S2.0.0B17.tar.gz /home/gbase/install -c gbase8c -p /home/gbase
返回添加成功信息:
{
"ret":0,
"msg":"Success"
}
gha_ctl SET dcs host:port ... [-c cluster] [-p confpath]
本次添加3个DCS,具体部署命令如下:
[gbase@localhost ~]$ /home/gbase/deploy/bin/gha_ctl set dcs 192.168.142.211:2379 192.168.142.212:2379 192.168.142.213:2379 -c gbase8c -p /home/gbase
返回添加成功信息:
{
"ret":0,
"msg":"Success"
}
gha_ctl SET gtm name host port dir rest_port [-c cluster] [-p confpath]
具体部署命令如下:
[gbase@localhost ~]$ /home/gbase/deploy/bin/gha_ctl set gtm gtm1 192.168.142.210 6666 /home/gbase/data/gtm 8008 -c gbase8c -p /home/gbase
返回添加成功信息:
{
"ret":0,
"msg":"Success"