小编Chr*_*eid的帖子

NGINX:大量连接超时错误

我经常收到此错误:

2014/11/26 21:01:30 [错误] 3475#0:*4028 上游超时(110:连接超时),同时从上游读取响应头

这是我的配置:

user www-data;
pid /run/nginx.pid;
worker_processes 2;
worker_rlimit_nofile 16384;

events {
  worker_connections    4096;
  use                   epoll;
  multi_accept          on;
}

http {

  sendfile              on;
  tcp_nopush            on;
  tcp_nodelay           on;
  keepalive_timeout     65;

  # free up connection after client stops responding...
  reset_timedout_connection on;

  # If the client stops reading data, free up the stale client connection after this much time. Default 60.
  # send_timeout          2;


  types_hash_max_size   2048;

  server_names_hash_bucket_size 256;
  # server_name_in_redirect off;

  include               /etc/nginx/mime.types;
  default_type          application/octet-stream;

  ssl_protocols         TLSv1 TLSv1.1 …
Run Code Online (Sandbox Code Playgroud)

nginx

3
推荐指数
1
解决办法
1万
查看次数

标签 统计

nginx ×1