使用 RPM 包安装 OceanBase 数据库 ============================================= 本文介绍如何使用 RPM 包安装 OceanBase 数据库。 前提条件 ------------------------- 在安装 OceanBase 数据库之前,您需要确认已下信息: * 您的机器满足软硬件要求。详细信息,参考 [资源准备](../4.installation-and-deployment/3.resource-preparation.md)。 * 您拥有 root 账户权限。 安装 OBD --------------------------- 1. 运行以下命令,下载 OBD 安装包。 ```bash wget https://mirrors.aliyun.com/oceanbase/community/stable/el/7/x86_64/ob-deploy-1.0.0-1.el7.x86_64.rpm ``` **注意** 示例中的安装包可能不是最新版本,建议您下载最新的安装包。详细信息,参考 [OBD 发行版本](https://github.com/oceanbase/obdeploy/releases)。 2. 运行以下命令,安装 OBD。 ```bash yum install -y ob-deploy-1.0.0-1.el7.x86_64.rpm source /etc/profile.d/obd.sh ``` 获取 OceanBase 数据库安装包 ---------------------------------------- 运行以下命令,下载 OceanBase 数据库安装包: ```bash wget https://mirrors.aliyun.com/oceanbase/community/stable/el/7/x86_64/oceanbase-ce-libs-3.1.0-1.el7.x86_64.rpm wget https://mirrors.aliyun.com/oceanbase/community/stable/el/7/x86_64/oceanbase-ce-3.1.0-1.el7.x86_64.rpm wget https://mirrors.aliyun.com/oceanbase/community/stable/el/7/x86_64/obproxy-3.1.0-1.el7.x86_64.rpm ``` **注意** 示例中的安装包可能不是最新版本,建议您下载最新的安装包。详细信息,参考 [OceanBase 数据库发行版本](https://github.com/oceanbase/oceanbase/releases)。 设置本地镜像 --------------------------- 运行以下命令,将 OceanBase 数据库安装包设置为本地镜像: ```bash obd mirror clone oceanbase-ce-libs-3.1.0-1.el7.x86_64.rpm obd mirror clone oceanbase-ce-3.1.0-1.el7.x86_64.rpm obd mirror clone obproxy-3.1.0-1.el7.x86_64.rpm ``` 后续操作 ------------------------- OceanBase 数据库安装完成后,您需要部署 OceanBase 数据库。详情参考 [使用 OBD 部署 OceanBase 数据库](../2.quickstart/4.deploy-the-oceanbase-database-by-using-obd.md)。