Using python code to intercept ddos Attacks
Recently, the company's servers have been attacked by a large number of requests, and the other side constantly requests to visit the web site. It takes up the broadband of the server, which makes it inaccessible to ordinary users.
Headache, so I studied for a day, wrote a script with python, extracted a large number of reques ...
Posted by MikeNye on Fri, 03 Jan 2020 22:37:00 -0800
Docker advanced management (docker-compose orchestration tool, consul architecture)
This chapter summarizes the points of knowledge:
Docker Compose container arrangementBuilding an Autodiscover Docker Service ArchitectureImplement container services to automatically join the Nginx cluster
**Docker Compose Container Layout Function**
Docker compose, predecessor of Fig, is a tool for defining and running multiple docker conta ...
Posted by nakago on Fri, 03 Jan 2020 21:52:00 -0800
Nginx tcp reverse agent configuration and installation
Nginx upgrade supports stream module
Nginx is used as the reverse proxy of tcp. Currently, in versions 1.7 to 1.9, the [nginx ﹐ tcp ﹐ proxy ﹐ module] module needs to be loaded. After 1.9, the [with stream] module can be used.
Because LNMP is used for installation( https://lnmp.org/ ), the method of upgrading nginx directly ...
Posted by anthonyv on Fri, 03 Jan 2020 20:48:14 -0800
Docker Containers - Mirror Management, Port Mapping, Container Interconnection
Layer of docker image
_Each instruction in the Dockerfile creates a new mirror layer;_Mirror layers will be cached and reused;_When the instructions of the Dockerfile are modified, the copied file changes, or the variables specified when the image is built are different, the corresponding mirror layer cache will fail;_When the mirror cache of ...
Posted by nadeemshafi9 on Fri, 03 Jan 2020 20:18:01 -0800
redis for decoupling (upload nginx logs to elastic search)
Experimental environment
server1 172.25.11.1 elasticsearch,nginx ,logstash
server2 172.25.11.2 redis,logstash
server3 172.25.11.3 kibana
Install kibana on server3
yum install -y kibana-4.5.1-1.x86_64.rpm
vim /opt/kibana/config/kibana.yml
/etc/init.d/kibana start
netstat -antupl
Browser access: 172.2 ...
Posted by Derfel Cadarn on Fri, 03 Jan 2020 18:03:33 -0800
saltstack for highly available keepalived building
In the following articles, I will refer to my blog for the construction of nginx based on saltstack
The experimental topology and related file directories are as follows:
Write the maintained installation script
[root@server1 ~]# vim /srv/salt/keepalived/install.sls
include:
- pkgs.make # This includes the usual ...
Posted by crishna369 on Fri, 03 Jan 2020 08:39:43 -0800
How to solve the problem of nginx shock group
For nginx's swarm alarm problem, we first need to understand that during the startup of nginx, the master process will listen to each port specified in the configuration file, and then the master process will call the fork() method to create each subprocess. According to the working principle of the process, the subprocess will inherit all the ...
Posted by jandrews3 on Fri, 03 Jan 2020 02:43:55 -0800
Haproxy installation and configuration of TCP reverse proxy
Last time we used Nginx for reverse proxy TCP, we found that the number of links in the test was still a few K, so we hung up. According to the official recommendation, we used Haproxy for testing.
install
Installation command:
yum install haproxy
The configuration file of haproxy is located in / etc/haproxy /. To prevent ...
Posted by HSKrustofsky on Thu, 02 Jan 2020 17:47:56 -0800
Nginx 1.14.0 full version compiled from CentOS 7 source code
1, Installation preparation
1. Go to the nginx source package on the official website http://nginx.org/en/download.html ]
2. Loading dependence
yum -y install pcre pcre-devel
yum -y install openssl openssl-devel
yum -y install gcc-c++ autoconf automake
yum install -y zlib-devel
yum -y install libxml2 libxml2-dev
yum -y install libxslt-devel
yum ...
Posted by egturnkey on Thu, 02 Jan 2020 05:30:49 -0800
Nginx reverse proxy and cache usage
Bowen structureReverse Proxyproxy cache
nginx optimization
Reverse proxy (case)
1. Reverse Proxy means that a proxy server accepts a client's connection request, then forwards the request to the web server on the network (possibly apache, nginx, tomcat, iis, etc.), and returns the result from the web server to the client requesting the conne ...
Posted by anauj0101 on Wed, 01 Jan 2020 01:03:43 -0800