search

Home  >  Q&A  >  body text

Nginx is a static file server, the one used for downloading, and some optimizations are done instead.

I used Lighthttp before, and the test can reach 80MB/s traffic
But after changing to Nginx, it died at 20MB/s. . . What a tragedy. . .
The files I want to download are usually between 2MB and 10MB. I haven’t changed any special configuration of Nginx and just installed the default one.
How to optimize this kind of download service?

ringa_leeringa_lee2752 days ago638

reply all(2)I'll reply

  • 迷茫

    迷茫2017-05-16 17:32:04

    Try to enable sendfile:

    sendfile on;
    sendfile_max_chunk 256K;

    http://wiki.nginx.org/HttpCoreModule#...

    reply
    0
  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-16 17:32:04

    /q/1010000003037023

    reply
    0
  • Cancelreply