---
title: "OCP 新增主机时报错 “Failed to connect to xx.xx.xx.xx port 80: Connection refused”-OceanBase数据库使用指南"
description: "了解OceanBase数据库在实际应用中关于 OCP 新增主机时报错 “Failed to connect to xx.xx.xx.xx port 80: Connection refused”相关的常见问题和使用技巧，帮助您快速解决 OCP 新增主机时报错 “Failed to connect to xx.xx.xx.xx port 80: Connection refused”的难题。"
image: https://mdn.alipayobjects.com/huamei_22khvb/afts/img/A*OSPzQ6GUQF4AAAAAQHAAAAgAeiGDAQ/original
---
[OceanBase AI 数据大会](https://www.oceanbase.com/conference2026 "OceanBase AI 数据大会")

## 体验新一代 AI 数据平台

[立即咨询](https://www.oceanbase.com/contactus) [免费试用 免费试用](https://www.oceanbase.com/free-trial)划线反馈

# OCP 新增主机时报错 “Failed to connect to xx.xx.xx.xx port 80: Connection refused”

更新时间：2025-07-07 09:01

适用版本： V4.x 内容类型：Troubleshoot  

## 问题现象

使用 OCP 新增主机时，HTTP 协议的 80 端口无法连接，报错 “Failed to connect to xx.xx.xx.xx port 80: Connection refused”。

![1](https://obbusiness-private.oss-cn-shanghai.aliyuncs.com/doc/img/ocp/KB/07041736.png)

## 可能原因

由于安全限制，HTTP 接口不能使用 80 端口，而 OCP 的 HTTP 接口则默认使用了 80 端口。

## 影响版本

OCP V4.x。

## 解决方法及规避方式

在 OCP **系统管理** > **系统参数** 中，修改 `ocp.site.url` 的参数值，添加自定义端口。

![2](https://obbusiness-private.oss-cn-shanghai.aliyuncs.com/doc/img/ocp/KB/07041740.png)

修改后如下图所示：

![2](https://obbusiness-private.oss-cn-shanghai.aliyuncs.com/doc/img/ocp/KB/07041741.png)

Previous

[OCP 进程存在但页面报错 “502”](https://www.oceanbase.com/knowledge-base/oceanbase-database-1000000003353031)

Next

[OCP 添加 OBServer 节点时，报错 “server id maybe invalid”](https://www.oceanbase.com/knowledge-base/oceanbase-database-1000000003353033) ![有帮助](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) 咨询
