首页 > 其他 > 详细

nginx 下载限速

时间:2015-04-07 19:45:15      阅读:133      评论:0      收藏:0      [点我收藏+]

You should include a directive like this in your nginx configuration file (inside the block of your server configuration):

limit_rate 150k;

This limits the speed of transmission of the answer to client. It works as a limit for each connection, not for the total server transfer rate. (Maybe you can adjust max_clients = worker_processes *worker_connections as a work-around to limit total transfer.)

Take a look at nginx documentation for limit_rate. There is also a limit_rate_after directive that is useful to set this limit only after download exceeds certain size.

nginx 下载限速

原文:http://blog.csdn.net/hellochenlian/article/details/44923443

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!