Internal memory pool (ngx_pool_t) technology for nginx source code analysis

Article Directory Preface 1. Basic concepts of memory pools 2. nginx data type monitoring 3. Definition of nginx memory pool related structures 1. Memory pool data management structure 2. Memory pool data structure 3. Large Memory Block Data Structure 4. Memory Release Processing Structure 4. Operation of memory pool 1. ...

Posted by zzlong on Fri, 21 Jan 2022 21:21:42 +0100

Thoroughly understand the five application scenarios of Nginx

1, HTTP server Nginx itself is also a static resource server. When there are only static resources, nginx can be used as the server. If a website is only a static page, it can be deployed in this way. 1. First, create an HTML directory in the document root directory Docroot(/usr/local/var/www), and then put a test.html in the HTML html; 2. ...

Posted by fleabel on Fri, 21 Jan 2022 11:14:59 +0100

The website nginx configuration limits the access frequency of a single IP to prevent DDOS malicious attacks

1, Introduction For websites, especially famous websites with large traffic, they often encounter attacks, such as DDOS attacks. Although some third parties, such as Cloudflare, can block them, for dynamic websites, PHP can only block some. At this time, it is necessary to limit the flow of a single IP malicious attack. Two modules of nginx ca ...

Posted by fredted40x on Fri, 21 Jan 2022 00:55:11 +0100

Nginx load balancing instance and balancing strategy

1. Load balancing: configuring real columns   implementation effect: enter the address in the browser address bar http://192.168.xxx.xxx/www/a.html , load balancing effect, average to ports 8081 and 8082 preparation:   1. Prepare two tomcat servers, one 8081 and one 8082 [root@localhost ~]# docker ps CONTAINER ID IMAGE ...

Posted by Cazrin on Tue, 18 Jan 2022 20:59:02 +0100

Improving multi-level cache based on Nginx+Lua

1 Introduction to multi-level cache architecture In any project, we have some frequent queries, and the frequent query data are basically the same. For example, in the project, we view user personal information, shopping Carnival query activity information. These function points are used frequently, and we generally need to deal with the ...

Posted by Bill H on Mon, 17 Jan 2022 07:26:41 +0100

Nginx deployment Django Python virtual environment creation fool tutorial

The relationship between uwsgi and nginx is not discussed here, but learning is recommended Generally speaking, Nginx can ensure load balance when your web page supports more requests, Simple web pages can also meet the requirements with uwsgi deployment and django runserver, so the load capacity is Nginx > uwsgi > local django runse ...

Posted by tim_ver on Mon, 17 Jan 2022 04:09:59 +0100

Nginx learning notes

Preface: learn the video notes of UP master crazy God in station B Video link brief introduction What is Nginx Nginx (enginex) is a high-performance HTP and reverse proxy web server. It also provides IMAP/POP3/SMTP services. Nginx was developed by Igor sesoyev for Ramberru site (in Russian: PaM6nep), the second most visited site in Russia. T ...

Posted by thewooleymammoth on Sun, 16 Jan 2022 17:15:55 +0100

Build Nginx deployment vue project under Ubuntu

Build Nginx deployment vue project under Ubuntu Previous: deploying SpringBoot under Ubuntu Step 1: install nodejs on Ubuntu Execute the apt install nodejs command to install nodejs. There are many examples in the article before the process. I won't say more. During the process, there will be a prompt to confirm the occupation of disk sp ...

Posted by Giri J on Sun, 16 Jan 2022 10:27:57 +0100

Nginx - Status page, third-party module, built-in variable

nginx status page Module: - with http_ stub_ status_ module Syntax: stub_status; Default: — Context: server, location to configure location /nginx_status {  stub_status;  allow 192.168.0.0/16;  allow 127.0.0.1;  deny all; } visit Active connections: 291 server accepts handled requests 16630948 16630948 31070465 Reading: 6 Writing ...

Posted by raimis100 on Sat, 15 Jan 2022 20:49:17 +0100

In this article, we'll learn more about Nginx/OpenResty. What the hell is Nginx

Detailed explanation of Nginx/OpenResty Nginx (or OpenResty) has been used in production scenarios to an amazing extent. No matter what the actual market occupation rate is, according to the projects experienced by the author in recent years, the utilization rate is 100%. However, a large number of developers around the author still know the ...

Posted by pradeepmamgain on Fri, 14 Jan 2022 15:42:13 +0100