How to deal with the explosion of apache, ubuntu, linode, traffic? Attack and defense?

if you want to solve the problem, you can learn a lot about the defense against traffic explosion, simultaneous access and server attacks.
its own station is apache, ubuntu, linode
in other words, it is the back end of php, and the front end of js,html,css
except that the server of linode itself needs to be upgraded

.

1. How to prevent general server attacks, such as DDOS
2. What to do when the traffic explodes? How to prevent traffic from exploding?
what happens when the 3.mysql database explodes? Do you want to have a different number of databases?
4. Do you want to spread out multiple servers?


describe the actions that conform to reality:

  1. use load balancer to share traffic with multiple back-end servers
  2. popular interfaces in programs use caching to ease database pressure
  3. if the database is divided into tables and databases, the program needs to be modified, and it can be ignored
  4. when it is not necessary.
  5. DDOS is usually attacked only when the website has a lot of traffic. In this case, there is a team to deal with this, usually to purchase anti-DDOS services from professional service providers

mm-hmm. In fact, if you have no experience, you can use ready-made tools. You search the Tencent waterproof wall.


DDOS is currently "unsolvable". The way to "have a solution" is to buy a large flow of cleaning.

of course, if someone on your website can come to DDOS, it means you need an operation and maintenance staff.


if all your traffic problems come from DDOS, they are basically unsolved.
if not, load balancer + redis seems to solve your problem.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b321cd-2bdf2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b321cd-2bdf2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?