Home > Backend Development > PHP Tutorial > Remember to handle an incident where the bandwidth is full and the server is stuck.

Remember to handle an incident where the bandwidth is full and the server is stuck.

WBOY
Release: 2016-07-29 09:15:44
Original
1318 people have browsed it
1.突然网站打不开
Copy after login
2.检查带宽情况,发现带宽跑满,考虑是cdn大量回源的问题
Copy after login

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}
Copy after login

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.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template