zoukankan      html  css  js  c++  java
  • Nginx Upstream timed out (110: Connection timed out)

    Nginx错误日志中,有大量的下列信息:

    Upstream timed out (110: Connection timed out) while reading response header from upstream

    这种情况主要在厦门两种情况下发生:

    1. nginx proxy

    需要适当的调整proxy_read_timeout值。

    2. Nginx作为php-fpm等等其他的有上游服务

    在这种情况下,适当的调整fastcgi_read_timeout选项值

    1
    2
    3
    4
    5
    6
    7
    location ~* .php$ {
        include         fastcgi_params;
        fastcgi_index   index.php;
        fastcgi_read_timeout 150;
        fastcgi_pass    127.0.0.1:9000;
        fastcgi_param   SCRIPT_FILENAME    $document_root$fastcgi_script_name;
    }
  • 相关阅读:
    Linux磁盘与文件系统操作命令
    Linux 进程管理命令
    文件备份与压缩命令
    Linux系统命令
    CentOS6和CentOS7的区别
    nginx安装配置
    docker的容器和镜像的清理
    Zabbix-Agent配置文件详解
    k8s 获取登录token命令
    vmware 端口转发设置
  • 原文地址:https://www.cnblogs.com/balala/p/5632520.html
Copyright © 2011-2022 走看看