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;
}


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM