LabHub
学习 学习路径 课程

nginx 故障处理

测验:502 · 504 与错误日志签名

在 LabHub 中继续学习

error.log 出现 connect() failed (111: Connection refused) while connecting to upstream,客户端收到 502。哪项措施最无效?

下面两条 504 error.log 有何不同?

upstream timed out (110: Connection timed out) while connecting to upstreamupstream timed out (110: Connection timed out) while reading response header from upstream

/hang/ 块设置 proxy_read_timeout 30s; 后,请求仍在 2 秒时以 504 结束。最可能是什么?

健康检查一直正常,但只有部分 SSO 用户收到 502,error.log 显示 upstream sent too big header。原因是什么?

proxy_buffer_size 提到 16k 后,nginx 因 "proxy_busy_buffers_size" must be less than the size of all "proxy_buffers" minus one buffer 拒绝启动。该怎么办?

访问日志为 413 ut=- rt=0.002 us=- "POST /upload HTTP/1.1",应用日志没有该请求。应如何判断?