OceanBase
English日本語简体中文
Docs Home
Products
Integrations
Release Notes

Databases

OceanBase DatabaseOceanBase Cloud OceanBase Best Practices

Tools

OceanBase Cloud PlatformOceanBase Migration ServiceOceanBase Developer CenterOceanBase Migration AssessmentOceanBase Admin ToolOceanBase Loader and DumperOceanBase DeployerKubernetes operator for OceanBaseOceanBase Diagnostic Tool OceanBase Binlog Service

Connectors and Middleware

OceanBase Database Proxy OceanBase Connector/C OceanBase Connector/J OceanBase Connector/ODBC OceanBase Connector/NETOceanBase Command-Line Client

Databases

OceanBase DatabaseOceanBase Cloud OceanBase Best Practices

Connectors and Middleware

OceanBase Database Proxy OceanBase Connector/C OceanBase Connector/J OceanBase Connector/ODBC OceanBase Connector/NETOceanBase Command-Line Client

Tools

OceanBase Cloud PlatformOceanBase Migration ServiceOceanBase Developer CenterOceanBase Migration AssessmentOceanBase Admin ToolOceanBase Loader and DumperOceanBase DeployerKubernetes operator for OceanBaseOceanBase Diagnostic Tool OceanBase Binlog Service
OceanBase DatabaseOceanBase Cloud ToolsConnectors and MiddlewareLifecycle Support Policy

OceanBase Deployer

V2.8.0Community Edition
  • What is obd
  • Quick Start
    • Install and configure obd
    • Quickly start OceanBase Database
    • Deploy an OceanBase cluster on the GUI
  • obd Command
    • Quick deployment command
    • Cluster commands
    • Mirror and repository commands
    • Testing commands
    • Tool commands
    • obdiag commands
    • Telemetry commands
  • User Guide
    • Configuration files
    • Deploy through GUI
      • GUI operation overview
      • Deploy OCP through the GUI
    • Deploy through CLI
      • Deploy OceanBase Database on a single OBServer node
      • Deploy OCP Express by using commands
      • Deploy and use obconfigserver
      • Deploy oblogproxy by using the CLI
      • Deploy OCP by using commands
      • Use OCP to take over a cluster deployed by obd
      • Use obd to take over a cluster
      • Add GUI-based monitoring for an existing cluster
      • Upgrade OCP Express
      • Upgrade OceanBase Database
      • Physical Standby Database
        • Deploy primary and standby tenants by using obd
        • Switch the roles of tenants and decouple a standby tenant from the primary tenant
      • Scale out a cluster and change cluster components
  • FAQ
    • FAQ
    • How do I upgrade an OBProxy to obproxy-ce 3.2.3?
  • Mode configuration rules
  • Error codes
  • Release Notes
    • Version rules
    • V2.8
      • OceanBase Deployer V2.8.0
    • V2.7
      • OceanBase Deployer V2.7.0
    • V2.6
      • OceanBase Deployer V2.6.2
      • OceanBase Deployer V2.6.1
      • OceanBase Deployer V2.6.0
    • V2.5
      • OceanBase Deployer V2.5.0
    • V2.4
      • OceanBase Deployer V2.4.0
    • V2.3
      • OceanBase Deployer V2.3.1
      • OceanBase Deployer V2.3.0
    • V2.2
      • OceanBase Deployer V2.2.0
    • V2.1
      • OceanBase Deployer V2.1.1
      • OceanBase Deployer V2.1.0
    • V2.0
      • OceanBase Deployer V2.0.1
      • OceanBase Deployer V2.0.0
    • V1.6
      • OceanBase Deployer V1.6.2
      • OceanBase Deployer V1.6.1
      • OceanBase Deployer V1.6.0
    • V1.5
      • OceanBase Deployer V1.5.0
    • V1.4
      • OceanBase Deployer V1.4.0
    • V1.3
      • OceanBase Deployer V1.3.3
      • OceanBase Deployer V1.3.2
      • OceanBase Deployer V1.3.0
    • V1.2
      • OceanBase Deployer V1.2.1
      • OceanBase Deployer V1.2.0

Download PDF

Document Feedback
  1. Documentation Center
  2. OceanBase Deployer
  3. V2.8.0

Install and configure obd

Last Updated:2026-09-04 08:21:29

Install obd
Install obd by using an RPM package
Install obd by using an all-in-one package
Install obd by using the source code
Configure obd
Online configuration
Offline configuration

This topic describes how to install and configure OceanBase Deployer (obd).

Install obd

Install obd by using an RPM package

Online installation

If your server can connect to the Internet and runs on CentOS or RedHat, you can run the following commands to install obd online.

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

Note

The yum command automatically installs the latest version. You can declare a version number to install the specified version. If you use the yum install -y ob-deploy command to install obd, we recommend that you install the latest version.

Offline installation

If your server cannot connect to the Internet, you can download the desired obd version from OceanBase Download Center. After you download the obd installation package, copy it to your central control server. We recommend that you download the latest version.

To install obd on CentOS or RedHat, run the following command:

sudo yum install ob-deploy-*.rpm

To install obd on Ubuntu or Debian, run the following command:

sudo alien --scripts -i ob-deploy-*.rpm

Install obd by using an all-in-one package

OceanBase Database provides an all-in-one package since V4.0.0. You can use this package to install obd, OceanBase Database, OceanBase Database Proxy (ODP), OceanBase Agent (OBAgent), Grafana, Prometheus, and OceanBase Cloud Platform (OCP) Express at a time.

Online installation

If your server can connect to the Internet, run the following commands to install obd online.

bash -c "$(curl -s https://obbusiness-private.oss-cn-shanghai.aliyuncs.com/download-center/opensource/oceanbase-all-in-one/installer.sh)"
source ~/.oceanbase-all-in-one/bin/env.sh

Offline installation

If your server cannot connect to the Internet, perform the following steps to install obd offline.

  1. Download the latest all-in-one package from OceanBase Download Center and copy it to the central control server.

  2. In the directory where the package is located, run the following commands to decompress and install the package.

    tar -xzf oceanbase-all-in-one-*.tar.gz
    cd oceanbase-all-in-one/bin/
    ./install.sh
    source ~/.oceanbase-all-in-one/bin/env.sh
    

Install obd by using the source code

Before you use the source code to install obd, make sure that the following dependencies are installed:

  • GCC

  • wget

  • Python-devel

  • openssl-devel

  • xz-devel

  • mysql-devel

To compile the source code to build obd, you must use the Python 2.7 and Python 3.8 environments. Perform the following steps:

  1. Run the following command in Python 2.7:

    sh rpm/build.sh executer
    

    Note

    The preceding command compiles the interpreter needed in OceanBase Database upgrades. If no upgrade is needed, skip this step.

  2. Run the following commands in Python 3.8:

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

Note

obd does not support source code-based installation in Python 2 since V2.0.0.

Configure obd

Online configuration

The repository information is built in obd. When the server can connect to the Internet, you do not need to configure obd. In this case, you can run the obd mirror list command to view the software in the obd repository.

# View obd repository information
[admin@test001 ~]$ obd mirror list
+-----------------------------------------------------------------------------+
|                            Mirror Repository List                           |
+----------------------------+--------+---------+----------+------------------+
| SectionName                | Type   | Enabled | Available | Update Time      |
+----------------------------+--------+---------+----------+------------------+
| oceanbase.community.stable | remote | True    | True     | 2023-03-20 11:21 |
| oceanbase.development-kit  | remote | True    | True     | 2023-03-20 11:21 |
| local                      | local  | -       | True     | 2023-03-20 11:23 |
+----------------------------+--------+---------+----------+------------------+
Use `obd mirror list <section name>` for more details
Trace ID: 8a4da3a0-c6ce-11ed-91cc-00163e030166
If you want to view detailed obd logs, please run: obd display-trace 8a4da3a0-c6ce-11ed-91cc-00163e030166
# View information about the software in the repository
[admin@test001 ~]$ obd mirror list oceanbase.community.stable
Update OceanBase-community-stable-el7 ok
Update OceanBase-development-kit-el7 ok
+--------------------------------------------------------------------------------------------------------------------------------------------------+
|                                                     oceanbase.community.stable Package List                                                      |
+-----------------------------------+---------+------------------------+--------+------------------------------------------------------------------+
| name                              | version | release                | arch   | md5                                                              |
+-----------------------------------+---------+------------------------+--------+------------------------------------------------------------------+
| grafana                           | 7.5.17  | 1                      | x86_64 | f0c86571a2987ee6338a42b79bc1a38aebe2b07500d0120ee003aa7dd30973a5 |
| libobclient                       | 2.0.0   | 1.el7                  | x86_64 | 7bbb2aeb9c628ee35c79d6dc2c1668ebbf97a3323f902e8fd33ff1a5ea95220f |
| libobclient                       | 2.0.0   | 2.el7                  | x86_64 | 6c1587b80df64b68343479aecddb0ca912d5ccd3d085cb41c7a37a1e38effc34 |
| libobclient                       | 2.0.1   | 3.el7                  | x86_64 | 4f92926496dec89936422f41f2f2206eb61c5e62e7b0dde1006c6e02eaebec6e |
| libobclient                       | 2.0.2   | 2.el7                  | x86_64 | eed33520e6911140dad65197cff53652310609ab79d7960ec4d2d6d4b2318ba7 |
# Subsequent outputs omitted

Offline configuration

If your server cannot connect to the Internet, download the desired installation package in advance and add it to the local repository of obd.

Download links:

  • Redhat/CentOS 7.x

  • Redhat/CentOS 8.x

Note

We recommend that you download the latest software version.

Add an installation package to the local repository

Perform the following steps as the system user that deployed obd. In this example, the admin user is used.

  1. Run the following command to disable remote repositories:

    obd  mirror disable remote
    

    Run the obd mirror list command to confirm whether the remote repositories are disabled. If the values of the remote repositories in the Enabled column are changed to False, the remote image sources are disabled.

  2. In the directory where the installation package is located, run the following command to upload the installation package to the local repository.

    obd mirror clone *.rpm
    
  3. View the list of installation packages in the local repository.

    obd mirror list local
    

    If the desired installation package is in the list, the installation package is uploaded.

Previous topic

What is obd
Last

Next topic

Quickly start OceanBase Database
Next
on this page
Install obd
Install obd by using an RPM package
Install obd by using an all-in-one package
Install obd by using the source code
Configure obd
Online configuration
Offline configuration