Nginx is a static file server, the one used for downloading, and some optimizations are done instead.
ringa_lee
ringa_lee 2017-05-16 17:30:04
0
2
626

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_lee
ringa_lee

ringa_lee

reply all(2)
迷茫

Try to enable sendfile:

sendfile on;
sendfile_max_chunk 256K;

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

曾经蜡笔没有小新

/q/1010000003037023

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!