Nginx错误日志说明
错误日志类型
类型1: upstream timed out
类型2: connect() failed
类型3: no live upstreams
类型4: upstream prematurely closed connection
类型5: 104: Connection reset by peer
类型6: client intended to send too large body
类型7: upstream sent no valid HTTP/1.0 header
详细说明
类型 |
错误日志 |
原因 |
解决办法 |
---|---|---|---|
类型 |
错误日志 |
原因 |
解决办法 |
1 | upstream timed out (110: Connection timed out) while connecting to upstream | nginx与upstream建立tcp连接超时,nginx默认连接建立超时为200ms | 排查upstream是否能正常建立tcp连接 |
1 | upstream timed out (110: Connection timed out) while reading response header from upstream | nginx从upstream读取响应时超时,nginx默认的读超时为20s,读超时不是整体读的时间超时,而是指两次读操作之间的超时,整体读耗时有可能超过20s | 排查upstream响应请求为什么过于缓慢 |
2 | connect() failed (104: Connection reset by peer) while connecting to upstream | nginx与upstream建立tcp连接时被reset | 排查upstream是否能正常建立tcp连接 |
2 | connect() failed (111: Connection refused) while connecting to upstream | nginx与upstream建立tcp连接时被拒 | 排查upstream是否能正常建立tcp连接 |
3 | no live upstreams while connecting to upstream | nginx向upstream转发请求时发现upstream状态全都为down | 排查nginx的upstream的健康检查为什么失败 |
4 | upstream prematurely closed connection | nginx在与upstream建立完tcp连接之后,试图发送请求或者读取响应时,连接被upstream强制关闭 | 排查upstream程序是否异常,是否能正常处理http请求 |
5 | recv() failed (104: Connection reset by peer) while reading response header from upstream | nginx从upstream读取响应时连接被对方reset | 排查upstream应用已经tcp连接状态是否异常 |
6 | client intended to send too large body | 客户端试图发送过大的请求body,nginx默认最大允许的大小为1m,超过此大小,客户端会受到http 413错误码 |
|
7 | upstream sent no valid HTTP/1.0 header | nginx不能正常解析从upstream返回来的请求行 | 排查upstream http响应异常 |
本文转自Tenderrain 51CTO博客,原文链接:http://blog.51cto.com/tenderrain/1902942,如需转载请自行联系原作者
Nginx错误日志说明相关推荐
- nginx日志报警|微信公众号推送预警消息|PHP+shell脚本实现nginx错误日志报警恶意访问报警,实时通知到微信公众号 | 小型网站nginx日志报警轻量级方案
1.shell脚本 命名:run.sh #!/bin/bash #!/usr/bin/python # -*- coding:utf-8 -*- #日志文件路径 accesslog=/www/wwwl ...
- Nginx错误日志详解
Nginx错误日志详解 Nginx软件会把自身运行的故障信息及用户访问的日志信息记录到指定的日志文件里 Nginx错误日志信息介绍 Nginx的错误信息是调试Nginx服务的重要手段,属于核心功能模块 ...
- nginx 错误日志分析
一.Nginx配置和内核优化 实现突破十万并发 二.一次Nignx的502页面的错误记录 (1)错误页面显示 错误日志: 2017/07/17 17:32:57 [error] 29071#0: *9 ...
- Nginx错误日志配置
Nginx作为代理服务器的功能,可以为网站访问时配置访问日志和错误日志. 1.在配置Nginx的访问日志之前,需要先在http配置将 access_log 开启 2.在sever的配置中对错误日进行配 ...
- linux nginx 错误日志,nginx error_log 错误日志配置说明
nginx的error_log类型如下(从左到右:debug最详细 crit最少): [ debug | info | notice | warn | error | crit ] 例如:error_ ...
- nginx php-fpm 输出php错误日志(转)
nginx是一个web服务器,因此nginx的access日志只有对访问页面的记录,不会有php 的 error log信息. nginx把对php的请求发给php-fpm fastcgi进程来处理, ...
- nginx php访问日志配置,nginx php-fpm 输出php错误日志的配置方法
由于nginx仅是一个web 服务器,因此 nginx的access日志只有对访问页面的记录,不会有php 的 error log信息. nginx把对php的请求发给php-fpm fastcgi进 ...
- nginx php-fpm 输出php错误日志
nginx是一个web服务器,因此nginx的access日志只有对访问页面的记录,不会有php 的 error log信息. nginx把对php的请求发给php-fpm fastcgi进程来处理, ...
- NGINX访问日志和错误日志
Logs are very useful to monitor activities of any application apart from providing you with valuable ...
最新文章
- Java微信对账接口返回值解析
- pci-e串口卡linux 驱动下载,万能PCI串口卡驱动下载
- 【机器视觉】 dev_close_inspect_ctrl算子
- 为什么TCP连接要三次握手?
- 强制关机对电脑的影响_电脑强制关机,对电脑有影响吗?你被伪科普骗了多久?...
- Java提高篇 —— String缓冲池
- printf函数的格式修饰符
- android中activity布局,Android中登录布局展示Activity
- OpenShift 4 - 使用 Trivy Operator 对项目中的镜像进行安全扫描
- win7注册表后开启AHCI模式
- php限制上传类型,php 上传类型限制的简单示例
- 利用ENVI自带全球DEM数据计算区域平均高程
- Vue 中如何引入第三方 JS 库
- SiliconLab zigbee host移植到IPQ 807X平台
- 华为鸿蒙跑了个“hello world”!跑通后,我特么开始怀疑人生....
- matlab两条曲线方程求交点_帮忙matlab求两条曲线交点程序,不知问题出在哪里。...
- 酷客多小程序重磅升级,这十几个模板足以打动你的心!
- android三星定位闪退,三星手机闪退问题7种修复方法
- 面试题:数组和链表的区别
- Contrastive Loss 对比损失函数