---
title: 腾讯云 CVM 网站返回 502：从代理查到应用
tags: 
author: [Cloud Field Notes](https://docswell.com/user/cloudfieldnotes)
site: [Docswell](https://www.docswell.com/)
thumbnail: https://bcdn.docswell.com/page/V7P363L3J8.jpg?width=480
description: 腾讯云 CVM 的 502 排查清单。先定位返回错误的代理层，再按连接拒绝、连接超时与读取超时检查上游。  腾讯云 CVM 专题指南：https://yuncvmpro.com/ Telegram 服务器咨询：https://t.me/ak6793
published: November 21, 26
canonical: https://docswell.com/s/cloudfieldnotes/KGN7RD-tencent-cvm-502-checklist
---
# Page. 1

![Page Image](https://bcdn.docswell.com/page/V7P363L3J8.jpg)

CVM FIELD NOTES / 01
腾讯云 CVM 网站返回 502：从代理查到应用
先确认 502 是哪一层返回的。查看负载均衡或反向代理日志。
在 CVM 上用 ss -lntp 检查应用实际监听的地址和端口。
从代理所在环境访问上游配置中的地址，测试健康检查路径。
如果代理和应用分属容器，容器内的 localhost 指向自身。


# Page. 2

![Page Image](https://bcdn.docswell.com/page/2JV434QN7Q.jpg)

CVM FIELD NOTES / 02
按错误类型缩小排查范围
连接被拒绝：检查应用是否启动、端口是否正确。
连接超时：检查路由、适用的安全组规则和主机防火墙。
读取响应超时：检查应用日志、慢请求及后端依赖。
修改 Nginx 后先执行 nginx -t，再重载，从公网复测。
yuncvmpro.com
t.me/ak6793


