OceanBase集群安装

环境

Centos 7.6 + OB 4.2.1

角色 IP 配置 备注

OBD/OBClient 192.168.18.11 8G+100G 中控机+客户端

OBServer/OBProxy 192.168.18.166 2G+30G 节点1

OBServer/OBProxy 192.168.18.167 2G+30G 节点2

OBServer/OBProxy 192.168.18.168 2G+30G 节点3

1.创建用户(192.168.18.11/166/167/168)

useradd admin

passwd admin

2.创建目录(192.168.18.166/167/168)

mkdir -p /obdata/{observer,data,redo}

chown -R admin:admin /obdata

3.关闭防火墙、关闭selinux(192.168.18.11/166/167/168)

4.安装all in包

下载地址:https://www.oceanbase.com/softwarecenter

tar -xzf oceanbase-all-in-one-*.tar.gz

cd oceanbase-all-in-one/bin/

./install.sh

source ~/oceanbase-all-in-one/bin/env.sh

5.OBD配置

#禁用远程仓库

obd mirror disable remote

#将安装包添加至本地镜像库

obd mirror clone *.rpm

obd mirror list local

#配置文件

# Only need to configure when remote login is required

 user:
   username: admin

#   password: your password if need

   key_file: /home/admin/.ssh/id_rsa.pub

#   port: your ssh port, default 22

#   timeout: ssh connection timeout (second), default 30

oceanbase-ce:
  servers:
    - name: node1
      # Please don't use hostname, only IP can be supported
      ip: 192.168.18.166
    - name: node2
      ip: 192.168.18.167
    - name: node3
      ip: 192.168.18.168
  global:
    # Starting from observer version 4.2, the network selection for the observer is based on the 'local_ip' parameter, and the 'devname' parameter is no longer mandatory.
    # If the 'local_ip' parameter i
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

南風_入弦

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值