---
title: 通过 oat-cli 配置部署环境-V3.2.4-OceanBase 数据库文档-分布式数据库使用文档
description: 分布式数据库OceanBase 企业版文档中心，提供关于通过 oat-cli 配置部署环境的相关内容，方便用户更好的应用分布式数据库OceanBaseOceanBase 数据库
image: https://mdn.alipayobjects.com/huamei_22khvb/afts/img/A*OSPzQ6GUQF4AAAAAQHAAAAgAeiGDAQ/original
---
[OceanBase AI 数据大会](https://www.oceanbase.com/conference2026 "OceanBase AI 数据大会")文档反馈![](https://mdn.alipayobjects.com/huamei_22khvb/afts/img/A*P8CuR4UJ_FkAAAAAAAAAAAAADiGDAQ/original) OceanBase 数据库分布式版 - V 3.2.4 企业版 LTS

# 通过 oat-cli 配置部署环境

更新时间：2026-04-15 10:13:44

您需要使用 oat-cli 修改各服务器的部署环境配置。

## 添加 admin 用户

为便于后续维护，部署前，您需要为每台服务器添加 admin 用户。

```shell
[root@hostname /]# cd /root/t-oceanbase-antman/clonescripts
[root@hostname clonescripts]# ./clone.sh -u

```

## 修改操作系统内核配置

### OCP 服务器

执行以下命令，对每台 OCP 服务器进行设置。

```shell
[root@hostname /]# cd /root/t-oceanbase-antman/clonescripts
[root@hostname clonescripts]# ./clone.sh -c -r ocp

```

### OBServer 服务器

执行以下命令，对每台 OBServer 服务器进行设置。

```shell
[root@hostname /]# cd /root/t-oceanbase-antman/clonescripts
[root@hostname clonescripts]# ./clone.sh -c -r ob

```

## 安装依赖包

### OCP 服务器安装依赖包

在每台 OCP 服务器执行以下命令，安装依赖包。

```shell
[root@hostname /]# cd /root/t-oceanbase-antman/clonescripts
[root@hostname clonescripts]# ./clone.sh -m -r ocp

```

### OBServer 服务器安装依赖包

在每台 OBServer 服务器执行以下命令，安装依赖包。

```shell
[root@hostname /]# cd /root/t-oceanbase-antman/clonescripts
[root@hostname clonescripts]# ./clone.sh -m -r ob

```

## OCP 与 OMS 服务器安装 Docker

在 OCP 与 OMS 服务器上执行以下命令，安装 Docker。

```shell
[root@hostname /]# cd /root/t-oceanbase-antman/clonescripts
[root@hostname clonescripts]# ./clone.sh -i

```

 上一篇 下一篇 ![有帮助](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*y6ocSqN8cqsAAAAAAAAAAAAAARQnAQ)![无帮助](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*BG9IQJyLHF8AAAAAAAAAAAAAARQnAQ)![反馈](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*eTWdQKCRKHwAAAAAAAAAAAAAARQnAQ) 咨询
