docker部署OceanBase

作者:Garany 发布于:2023-05-20 分类:破万卷书
mkdir -p /data/oceanbase/ob
mkdir -p /data/oceanbase/obd/

docker run -itd --name oceanbase \
--network=host -p 2881:2881 \
-e MODE=normal -e TZ=Asia/Shanghai \
-v /data/oceanbase/ob/:/root/ob/ \
-v /data/oceanbase/obd/:/root/.obd/ \
oceanbase/oceanbase-ce:4.3.0

查看集群列表
docker exec -it oceanbase obd cluster list
查看obcluster集群状态
docker exec -it oceanbase obd cluster display obcluster

我来说说