错误日志类型

  • 类型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错误码
  1. 调整请求客户端的请求body大小;

  2. 调大相关域名的nginx配置:client_max_body_size;

7 upstream sent no valid HTTP/1.0 header nginx不能正常解析从upstream返回来的请求行 排查upstream http响应异常

本文转自Tenderrain 51CTO博客,原文链接:http://blog.51cto.com/tenderrain/1902942,如需转载请自行联系原作者

Nginx错误日志说明相关推荐

  1. nginx日志报警|微信公众号推送预警消息|PHP+shell脚本实现nginx错误日志报警恶意访问报警,实时通知到微信公众号 | 小型网站nginx日志报警轻量级方案

    1.shell脚本 命名:run.sh #!/bin/bash #!/usr/bin/python # -*- coding:utf-8 -*- #日志文件路径 accesslog=/www/wwwl ...

  2. Nginx错误日志详解

    Nginx错误日志详解 Nginx软件会把自身运行的故障信息及用户访问的日志信息记录到指定的日志文件里 Nginx错误日志信息介绍 Nginx的错误信息是调试Nginx服务的重要手段,属于核心功能模块 ...

  3. nginx 错误日志分析

    一.Nginx配置和内核优化 实现突破十万并发 二.一次Nignx的502页面的错误记录 (1)错误页面显示 错误日志: 2017/07/17 17:32:57 [error] 29071#0: *9 ...

  4. Nginx错误日志配置

    Nginx作为代理服务器的功能,可以为网站访问时配置访问日志和错误日志. 1.在配置Nginx的访问日志之前,需要先在http配置将 access_log 开启 2.在sever的配置中对错误日进行配 ...

  5. linux nginx 错误日志,nginx error_log 错误日志配置说明

    nginx的error_log类型如下(从左到右:debug最详细 crit最少): [ debug | info | notice | warn | error | crit ] 例如:error_ ...

  6. nginx php-fpm 输出php错误日志(转)

    nginx是一个web服务器,因此nginx的access日志只有对访问页面的记录,不会有php 的 error log信息. nginx把对php的请求发给php-fpm fastcgi进程来处理, ...

  7. nginx php访问日志配置,nginx php-fpm 输出php错误日志的配置方法

    由于nginx仅是一个web 服务器,因此 nginx的access日志只有对访问页面的记录,不会有php 的 error log信息. nginx把对php的请求发给php-fpm fastcgi进 ...

  8. nginx php-fpm 输出php错误日志

    nginx是一个web服务器,因此nginx的access日志只有对访问页面的记录,不会有php 的 error log信息. nginx把对php的请求发给php-fpm fastcgi进程来处理, ...

  9. NGINX访问日志和错误日志

    Logs are very useful to monitor activities of any application apart from providing you with valuable ...

最新文章

  1. Java微信对账接口返回值解析
  2. pci-e串口卡linux 驱动下载,万能PCI串口卡驱动下载
  3. 【机器视觉】 dev_close_inspect_ctrl算子
  4. 为什么TCP连接要三次握手?
  5. 强制关机对电脑的影响_电脑强制关机,对电脑有影响吗?你被伪科普骗了多久?...
  6. Java提高篇 —— String缓冲池
  7. printf函数的格式修饰符
  8. android中activity布局,Android中登录布局展示Activity
  9. OpenShift 4 - 使用 Trivy Operator 对项目中的镜像进行安全扫描
  10. win7注册表后开启AHCI模式
  11. php限制上传类型,php 上传类型限制的简单示例
  12. 利用ENVI自带全球DEM数据计算区域平均高程
  13. Vue 中如何引入第三方 JS 库
  14. SiliconLab zigbee host移植到IPQ 807X平台
  15. 华为鸿蒙跑了个“hello world”!跑通后,我特么开始怀疑人生....
  16. matlab两条曲线方程求交点_帮忙matlab求两条曲线交点程序,不知问题出在哪里。...
  17. 酷客多小程序重磅升级,这十几个模板足以打动你的心!
  18. android三星定位闪退,三星手机闪退问题7种修复方法
  19. 面试题:数组和链表的区别
  20. Contrastive Loss 对比损失函数

热门文章

  1. 【恋爱通告】高清完整版迅雷下载! 首发
  2. GO小知识之实例演示 json 如何转化为 map 和 struct
  3. 洛谷P5273 【模板】多项式幂函数 (加强版)
  4. 企业防火墙之iptables
  5. iOS 二进制流转化-项目笔记
  6. 2017-9-13:学习笔记
  7. 制作CentOS fence-agents 镜像
  8. HTML图片热区map area的用法(转)
  9. appium框架之bootstrap
  10. 通过Scroller.js制作上拉加载和下拉刷新