Using Nginx to limit the number of concurrent connections to a single IP can reduce some acquisition programs or DDOS attacks. In lnmp's nginx configuration, some code has been added, but it is commented out. You can edit the /usr/local/nginx/conf/nginx.conf file to find it:
The front # Remove, then add
The last digit of the limit_conn statement is 20 for the maximum number of concurrent connections for a single IP.
Detailed official rules:
http://wiki.nginx.org/NginxChsHttpLimit_zoneModule
Use Nginx as a web server. If the log is not processed, the log file may Very scary ~10G, 20G
You can modify nginx.conf to find access_log:
access_log /dev/null;error_log /dev/null;
Throw them all The black hole of the system does not need to read and write the log to the system disk all the time, and also extend the life of the hard disk.
After the modification, restart Nginx ( kill -HUP `cat logs/nginx.pid` ) can.
A public IP is a public address that is assigned by InterNIC and consists of a class-based network I
The original use of Tomcat in Linux does not use the newly created user created by the non-ROOT perm
Suddenly found that the website can not open, the database shows that the link can not be linked, th
ACL is an abbreviation of Access Control List. The main purpose is to provide detailed permission t
Introducing the Linux hard disk system to establish partition steps
How to load a USB flash drive or a removable hard disk under Linux system
Summary of the basic settings of the iptables firewall
ARM Linux development common shell script command summary
Fedora Linux 8 system JDK 6.0 configuration method
Linux VI command interpretation
Modify the time zone using the command line in Linux
Expired file causes VCS dual machine to fail to start
Configuring GAppProxy tutorial on Linux system
Windows 7 Help and Support Answer all Win7 issues!
What are the updates for Win10 Build 10108? Version 10108 Internal Detailed Updates List
What prompted the blade server to die?
Windows XP user account blank solution
Win7 running game application error 0xc000007d how to deal with?
Win10 lock screen desktop picture how to change where to change
Win7 system automatically uses Baidu search data to jump to Sogou search fault cause and solution
Introducing several misunderstandings in the process of optimizing Vista
Win10 computer mouse right button is not sensitive how to do
Windows 8 installation process screenshot exposure Fire speed onlookers! (3)