---
title: 手工黑屏安装 ODP (以 configUrl 方式启动)-OceanBase数据库使用指南
description: 了解OceanBase数据库在实际应用中关于 手工黑屏安装 ODP (以 configUrl 方式启动)相关的常见问题和使用技巧，帮助您快速解决 手工黑屏安装 ODP (以 configUrl 方式启动)的难题。
---
切换语言

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

划线反馈

# 手工黑屏安装 ODP (以 configUrl 方式启动)

更新时间：2026-05-07 08:31

适用版本： V3.2.x、V4.0.x、V4.1.x、V4.2.x 内容类型：How-to  

测试环境或者 POC 测试中，为提高性能测试的结果，需要将 ODP 和 observer 分开部署，将 ODP 部署到发起压测的客户机上，同时该客户机也是安装 MetaOB 的机器。但是 MetaOB 容器内自带有 obproxy 进程，因此无法通过 OCP 白屏界面来部署 ODP，只能黑屏手工安装并启动 ODP。

## 适用版本

ODP 的各个版本

## 操作方法

1. 安装 ODP RPM 包。

   ```
   [root@localhost ~]# rpm -ivh obproxy-4.0.0-20230130103527.el7.x86_64.rpm

   ```

​ 2. 配置 3883 端口以及 ConfigURL，并启动 ODP。

```
```
[root@localhost ~]# su - admin
[admin@localhost ~]$ export OBPROXY_PORT=3883
[admin@localhost ~]$ export OBPROXY_CONFIG_SERVER_URL="http://192.xxx.xxx.xx:8080/services?Action=GetObProxyConfig&User_ID=alibaba&UID=ocpmaster"
[admin@localhost ~]$ cd /opt/taobao/install/obproxy-4.0.0/ && ./bin/obproxyd.sh -c start -e offline -n obcluster
use OBPROXY_CONFIG_SERVER_URL
obproxy config server url:http://192.xxx.xxx.xx:8080/services?Action=ObRootServiceInfo&User_ID=alibaba&UID=ocpmaster&ObRegion=obcluster
port is: 3883
app name is: obcluster
unknown idc name
env WORK_THREAD_NUM not set, use default 8
obproxy work_thread_num:8
obproxy started
[admin@obproxy obproxy-4.0.0]$
```

```

3. 测试连接。

   ```
   [root@localhost ~]# mysql -h127.1 -uroot@sys#obcluster -P3883 -pxxx -Doceanbase -A -c
   Welcome to the MariaDB monitor.  Commands end with ; or \g.
   Your MySQL connection id is 4799
   Server version: 5.6.25 OceanBase 4.0.0.0 (r102010012023021520-1815eb1c30f0d4cd489ce0099f8758dbcd112393) (Built Feb 15 2023 20:49:24)
   ​
   Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
   ​
   Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
   ​
   MySQL [oceanbase]>

   ```

上一篇

[如何手工黑屏卸载掉 OceanBase 集群/OBProxy 集群以及安装在主机上的 OCP Agent](https://www.oceanbase.com/knowledge-base/oceanbase-database-1000000000210148)

下一篇

[手工黑屏安装 ODP(以 rsList 方式启动)](https://www.oceanbase.com/knowledge-base/oceanbase-database-1000000000210145) ![有帮助](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) 咨询热线
