Nginx -- matching rules in nginx

preface Powerful functions in nginx, such as rewrite and proxy_pass is inseparable from his matching rules. Understand nginx and learn advanced nginx usage. You must know all kinds of matching priorities and matching syntax 1, nginx location 1. Syntax rules and priorities location [=|~|~*|!~|!~*|^~] /uri/ { ... } = ...

Posted by busin3ss on Fri, 22 Oct 2021 18:06:29 -0700

Chapter 6 Introduction to Shell script programming

2.7.11 script security and set set command: can be used to customize the shell environment $- variable h: hashall, after the option is turned on, the Shell will hash the path where the command is located to avoid querying every time. Turn off the H option through set +h i: Interactive comments, including this option, indicates that the curre ...

Posted by phynias on Fri, 22 Oct 2021 17:11:27 -0700

Automatically backup server data to local windows

Application scenario Recently, there is a requirement that after the server executes an instruction, it needs to back up the generated data to windows. It's not easy to check on the Internet. Some need to write a script to run in windows, but this application does not need windows operation. Instead, it monitors the operation of the server and ...

Posted by Absorbator on Fri, 22 Oct 2021 05:13:43 -0700

Explanation of environment variables and shell in Linux (Section 3)

preface The content of this section is to explain how to execute the command line of Linux, including basic knowledge such as command interpreter, shell configuration, alias, environment variables, etc. 1.Shell introduction Shell is the middle bridge between the kernel and users. In fact, it is the interpreter to interpret commands. ...

Posted by ReKoNiZe on Thu, 21 Oct 2021 23:40:27 -0700

Chapter 6 Introduction to Shell script programming

1. Fundamentals of programming Linus: Talk is cheap, show me the code 1.1 procedure composition Program: algorithm + data structureData: is the core of the programData structure: the type and organization of data in a computerAlgorithm: how to process data 1.2 programming style Process oriented language To do one thing, arrange two st ...

Posted by mitsubishi2002 on Thu, 21 Oct 2021 17:09:36 -0700

Introduction and deployment of keepalived

1. Introduction to keepalived Keepalived software was originally designed for LVS load balancing software to manage and monitor the status of each service node in LVS cluster system. Later, it added VRRP function that can realize high availability. Therefore, in addition to managing LVS software, keepalived can also be used as high availab ...

Posted by mike97gt on Thu, 21 Oct 2021 12:43:16 -0700

The second section is network programming of Linux programming

1, Overview of network programming Network: Address (including IP address and port number)Data exchange (involving protocols such as http, tcp and UDP, in other words, data format)MCU will use port number protocol (uart) Introduction to network programming all talk about sockets (sockets are divided into two types: tcp and UDP): TCP: connec ...

Posted by iamyespee on Thu, 21 Oct 2021 06:45:57 -0700

KVM virtualization deployment

KVM deployment Introduction to virtualization Virtualization is the foundation of cloud computing. In short, virtualization enables multiple virtual machines to run on a physical server. Virtual machines share CPU, memory and IO hardware resources of physical machines, but logically, virtual machines are isolated from each other. The phy ...

Posted by dusty on Wed, 20 Oct 2021 16:57:26 -0700

Systems and processes

1, / proc file system The / proc virtual file system provides convenience for accessing kernel information. The file system resides in the / proc directory, contains various files used to display kernel information, and allows processes to easily read and sometimes modify these information through regular file I/O system calls. The reason why ...

Posted by MNS on Wed, 20 Oct 2021 11:38:25 -0700

Linux system shell script and python script writing

GPU queuing script python script GPU queuing script ---- once the GPU is idle, the script execution program is triggered reference resources:   GPU queuing script (python script) cmd = 'bash run.sh' this sentence sets the python script to execute import os import sys import time cmd = 'bash run.sh' #Set script to run def gpu_info(): ...

Posted by Wakab on Wed, 20 Oct 2021 10:54:07 -0700