ApIEfuse
V2EX  ›  问与答

怎么调高 nginx 文件服务器的连接限制?

  •  
  •   ApIEfuse · Mar 3, 2016 · 2332 views
    This topic created in 3766 days ago, the information mentioned may be changed or developed.

    直接从国外网盘下文件太慢了,在 DO 上用 Nginx 搭了个最简单的文件服务器做跳板,然后本机用 FDM 多段下载,同时开三个任务的时候,就有任务提示“已达到服务器的限制”,下面是配置:
    server {
    client_max_body_size 4G; listen xxx;
    server_name x.x.x.x;
    root /home/file;
    location / {
    autoindex on;
    autoindex_exact_size on;
    autoindex_localtime on;
    }

    }
    求问,怎么提高这个限制?

    7 replies    2016-03-04 19:26:55 +08:00
    kran
        1
    kran  
       Mar 3, 2016 via Android
    worker_connections?
    ApIEfuse
        2
    ApIEfuse  
    OP
       Mar 3, 2016
    @kran 我在 nginx.conf 里改成 1024 了。。文件服务器的配置文件我放 sites-enabled 下面的,是也要添上行上去吗?
    kran
        3
    kran  
       Mar 3, 2016 via Android   ❤️ 1
    @sldaniel 应该没关系了,再想想别的办法啦
    ApIEfuse
        4
    ApIEfuse  
    OP
       Mar 3, 2016
    @kran 好吧,谢谢!
    knightdf
        5
    knightdf  
       Mar 3, 2016 via iPhone
    open files
    publicAdmin
        6
    publicAdmin  
       Mar 4, 2016   ❤️ 1
    http://t.cn/RGluC08 看看这个。
    ApIEfuse
        7
    ApIEfuse  
    OP
       Mar 4, 2016
    @publicAdmin 感谢!有点思路了,我回去研究一下
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5308 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 52ms · UTC 08:03 · PVG 16:03 · LAX 01:03 · JFK 04:03
    ♥ Do have faith in what you're doing.