1.突然网站打不开
2.检查带宽情况,发现带宽跑满,考虑是cdn大量回源的问题
3.ssh Difficultly log in to the server and restart nginx
4. The website was restored, checked the log, and found that a large number of IP addresses in the same segment requested some unpopular files on the website. These files were not cached by CDN
{"remote_addr":"140.205.253.185","host":"file.reco.cn","time":"09/Sep/2015:16:06:05 +0800","request":"GET /download/f23429d4fda583c9fda74783f33a5d4e/%E5%BC%82%E6%97%8F%E8%83%8C%E5%8F%9B%E8%80%85+Alien+Violatorv1.3.apk HTTP/1.1","status":200,"size":168888,"referer":"-","user_agent":"-","forwarded":"211.103.88.76","request_time":30.000}
nginx banned this IP segment,
Website recovery
complete solution to this problem:
Separate the file server
Copyright statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission.
The above introduces the handling of the server jamming incident when the bandwidth is full, including the content. I hope it will be helpful to friends who are interested in PHP tutorials.