Nginx provides limit_rate
location /download/ { limit_rate_after 500k; limit_rate 50k; }
The above configuration means. After the user's download reaches 500k, the speed is controlled within 50k. In this way, the server bandwidth is reduced.
The above introduces how nginx limits bandwidth, including nginx content. I hope it will be helpful to friends who are interested in PHP tutorials.