• docker部署OceanBase

    发布于:2023-05-20 作者:Garany 评论(0) 引用(0) 浏览(76)   分类:破万卷书  

    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

    阅读全文>>

  • docker-compose

    发布于:2022-03-03 作者:Garany 评论(0) 引用(0) 浏览(348)   分类:破万卷书  

    1.安装 # curl -L https://github.com/docker/compose/releases/download/v2.1.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose # chmod +x /usr/local/bin/docker-compose # docker-compose --version 2.拉取服务里定义的镜像 docker-compose pull 3.列出project所有运行容器(容器名 = 目录名_service_index index表示容器序数,从1开始) docker-compose ps 4.启动已存在但停止的所有service docker-compose start [serviceName]: 构...

    阅读全文>>