---
title: "安装 OBD | OceanBase 文档中心"
description: 安装 OBD 您可以使用以下方式安装 OBD 使用 RPM 包（Centos 7 及以上）安装 sudo yum install -y yum-utils sudo yum-config-manager --add-repo https://mirrors.aliyun.com/oceanbase/OceanBase…
---
切换语言

- 中文站 - 简体中文
- International - English
- 日本站 - 日本語

文档反馈![](https://mdn.alipayobjects.com/huamei_22khvb/afts/img/A*Qq8pT6yBPTcAAAAAAAAAAAAADiGDAQ/original) 安装部署工具 OBDV 1.6.1 社区版

# 安装 OBD

更新时间：2026-04-13 17:15:40

[编辑](https://github.com/oceanbase/obd-doc/edit/V1.6.1/zh-CN/200.install-obd.md)  

您可以使用以下方式安装 OBD

## 使用 RPM 包（Centos 7 及以上）安装

```shell
sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://mirrors.aliyun.com/oceanbase/OceanBase.repo
sudo yum install -y ob-deploy
source /etc/profile.d/obd.sh

```

## 使用源码安装

在使用源码安装 OBD 之前，请您确认已安装以下依赖：

- gcc
 - wget
 - python-devel
 - openssl-devel
 - xz-devel
 - mysql-devel

Python2.7 使用以下命令安装：

```shell
sh rpm/build.sh build
source /etc/profile.d/obd.sh

```

Python3.8 需按以下步骤安装

您需先使用 Python2.7 环境执行以下命令：

```shell
sh rpm/build.sh executer

```

之后在 Python3.8 环境下执行以下命令：

```shell
sh rpm/build.sh build_obd
source /etc/profile.d/obd.sh

```

 上一篇 下一篇 ![有帮助](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)[AI](https://www.oceanbase.com/obi) 咨询热线
