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

- 简体中文
- English

划线反馈

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

更新时间：2023-11-13 02:05

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

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

## 适用版本

ODP 的各个版本。

## 操作方法

1. 安装 ODP RPM 包。

   ```
   [root@ocp ~]# rpm -ivh obproxy-3.1.1-20210804145754.el7.x86_64.rpm

   ```
 2. 配置 3883 端口以及 rsList，并启动 ODP。

   ```
   [root@ocp ~]# su - admin
   [admin@ocp ~]$ cd /opt/taobao/install/obproxy-3.1.1/
   // 注意：这边“-p”选项后面的端口不能已经被占用，否则obproxy起不来
   [admin@ocp ~]$ cd /opt/taobao/install/obproxy-3.1.1/
   [admin@ocp obproxy-3.1.1]$ ./bin/obproxy -r "20.xx.xx.2:3881;20.xx.xx.3:3881;20.xx.xx.4:3881" -p 3883 -o "enable_strict_kernel_release=false,enable_cluster_checkout=false,enable_metadb_used=false" -c obcluster
   bin/obproxy -r 20.xx.xx.2:3881;20.xx.xx.3:3881;20.xx.xx.4:3881 -p 3883 -o enable_strict_kernel_release=false,enable_cluster_checkout=false,enable_metadb_used=false -c obcluster
   rs list: 20.xx.xx.2:3881;20.xx.xx.3:3881;20.xx.xx.4:3881
   listen port: 3883
   optstr: enable_strict_kernel_release=false,enable_cluster_checkout=false,enable_metadb_used=false
   cluster_name: obcluster
   [admin@ocp obproxy-3.1.1]$
   ​
   [admin@ocp obproxy-3.1.1]$ ps -ef | grep obproxy
   root     2693531 2693514  0 19:15 pts/0    00:00:04 sh start_obproxy.sh
   root     2693559 2693531 11 19:15 ?        00:22:46 ./bin/obproxy
   admin    2694015 2693579  0 19:15 pts/0    00:00:00 bash /home/admin/bin/ocp_obproxyd.sh
   admin    2698254 2693579 56 19:17 ?        01:50:50 ./bin/obproxy -p2888 -n ocp_obproxy -o obproxy_config_server_url=http://127.0.0.1:8080/services?Action=GetObProxyConfig&User_ID=alibaba&UID=admin,syslog_level=INFO,skip_proxyro_check=true,skip_proxy_sys_private_check=true,enable_strict_kernel_release=false,enable_metadb_used=false,enable_proxy_scramble=true,proxy_mem_limited=1G,log_dir_size_threshold=10G
   root     2822368 2693491  0 20:57 ?        00:00:14 /home/admin/ocp_agent/obagent/obstat2 -o http://20.xx.xx.1:8080 -c metacluster __obproxy__ -f 20
   admin    3145178       1 13 22:32 ?        00:00:02 bin/obproxy -r 20.xx.xx.2:3881;20.xx.xx.3:3881;20.xx.xx.4:3881 -p 3883 -o enable_strict_kernel_release=false,enable_cluster_checkout=false,enable_metadb_used=false -c obcluster
   admin    3146361 3137692  0 22:32 pts/9    00:00:00 grep --color=auto obproxy
   ​```

   ```
 3. 测试连接。

   ```
   [root@ocp run]# obclient -h20.xx.xx.1 -P3883 -uroot@sys#obcluster -pxxx
   obclient: [Warning] Using a password on the command line interface can be insecure.
   Welcome to OceanBase.  Commands end with ; or \g.
   Your OceanBase connection id is 3276804
   Server version: OceanBase 3.2.1 (r20210901195302-679b1dce985cb625a24c33b39e4ef6448fa294d5) (Built Sep  1 2021 20:29:16)
   ​
   Copyright (c) 2000, 2020, OceanBase and/or its affiliates. All rights reserved.
   ​
   Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
   ​
   obclient>

   ```

Previous

[手工黑屏安装 ODP (以 configUrl 方式启动)](https://www.oceanbase.com/knowledge-base/oceanbase-database-1000000000210144)

Next

[ODP 部署失败](https://www.oceanbase.com/knowledge-base/oceanbase-database-1000000000210140) ![有帮助](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) 咨询热线
