博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Nginx 错误汇总
阅读量:4518 次
发布时间:2019-06-08

本文共 827 字,大约阅读时间需要 2 分钟。

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

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

  • a. Nginx 作为 proxy,需要适当的调整 proxy timeout 的值。
location / {        ...        proxy_connect_timeout 70;        proxy_read_timeout 150;        proxy_send_timeout 150; ... }
  • b. Nginx作为 php-fpm 等其他的有上游服务,需要适当的调整 fastcgi_read_timeout 选项值
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;    }

2、open() “/usr/local/nginx/html/favicon.ico” failed (2: No such file or directory)

只需要关闭 favicon.ico 的 log:

location  /favicon.ico {        log_not_found off;        access_log off;    }

转载于:https://www.cnblogs.com/wjoyxt/p/4969275.html

你可能感兴趣的文章
[SCOI2010]生成字符串
查看>>
JLOI2015 城池攻占
查看>>
在 Azure 虚拟机上快速搭建 MongoDB 集群
查看>>
跑步运动软件调研
查看>>
搭建ntp时间服务器 ntp - (Network Time Protocol)
查看>>
35. Search Insert Position
查看>>
awk使用
查看>>
ASP.NET Razor 视图引擎编程参考
查看>>
Vue 基础篇
查看>>
malloc_free_new_delete
查看>>
Python中的open和codecs.open
查看>>
开发Servlet的方法(2)
查看>>
sqlserver中分区函数 partition by的用法
查看>>
asp.net mvc 伪静态添加
查看>>
\Process(sqlservr)\% Processor Time 计数器飙高
查看>>
JVM讲解
查看>>
ServletConfig讲解
查看>>
struts2配置默认Action
查看>>
EA类图与代码同步
查看>>
Spring集成MyBatis01 【推荐使用】、springMVC中文乱码和json转换问题
查看>>