nginx 限速 123456789101112131415http { limit_conn_zone $binary_remote_address zone=perip:10m ... server { ... location /download/ { # 限制每个IP只能建立一个连接 limit_conn perip 1; # 当请求的流量超500KB后进行限速 limit_rate_after 500k; # 限速 50KB/s limit_rate 50k; } }} 是对每个连接限速50k。这里是对连接限速,而不是对IP限速!如果一个IP允许两个并发连接,那么这个IP就是限速limit_rate * 2 nginx #nginx apple-app-site-association 上一篇 uniapp一键登录 下一篇