首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Nginx配置导致连接过多。

Nginx配置导致连接过多。
EN

Stack Overflow用户
提问于 2014-11-19 11:25:49
回答 1查看 9.9K关注 0票数 5

为了实现上传进度模块,下面的服务器配置会导致打开的文件太多错误

代码语言:javascript
运行
复制
2014/11/19 12:10:34 [alert] 31761#0: *1010 socket() failed (24: Too many open files) while connecting to upstream, client: 127.0.0.1, server: xxx, request: "GET /documents/15/edit HTTP/1.0", upstream: "http://127.0.0.1:80/documents/15/edit", host: "127.0.0.1"
2014/11/19 12:10:34 [crit] 31761#0: *1010 open() "/usr/share/nginx/html/50x.html" failed (24: Too many open files), client: 127.0.0.1, server: xxx, request: "GET /documents/15/edit HTTP/1.0", upstream: "http://127.0.0.1:80/documents/15/edit", host: "127.0.0.1"

以下是生成冲突passenger_enabled的服务器组的相关部分: rails_env开发;根/home/user/app/current/public;

代码语言:javascript
运行
复制
    # redirect server error pages to the static page /50x.html
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   html;
    }

    location / {
        # proxy to upstream server
        proxy_pass http://127.0.0.1;
        proxy_redirect default;

        # track uploads in the 'proxied' zone
        # remember connections for 30s after they finished
        track_uploads proxied 30s;
    }

    location ^~ /progress {
        # report uploads tracked in the 'proxied' zone
        report_uploads proxied;
    }

作为相对于nginx的n00b,我不明白这是在哪里产生太多的文件错误。我以为错误页只适用于500-504个服务器错误.

EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/27015687

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档