扫码关注官方订阅号
之前用Lighthttp做的,测试可以跑到 80MB/s 的流量 但是换了Nginx以后,到20MB/s就挂掉了。。。悲了个剧。。。 我要下载的文件一般都在2MB-10MB,Nginx我没改过什么特殊的配置,就装了默认的。 要做这种下载服务,需要怎么优化一下呢?
ringa_lee
试试开启sendfile:
sendfile on; sendfile_max_chunk 256K;
http://wiki.nginx.org/HttpCoreModule#...
/q/1010000003037023
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
试试开启sendfile:
http://wiki.nginx.org/HttpCoreModule#...
/q/1010000003037023