Under Linux, two child processes communicate through pipe s and receive the signal of the parent process to stop (complete code)
Title Description:
Algorithm design:
Multi process:
Here we mainly use the system call fork:
fork is a system call to create a process under Linux The process calling fork is the main process, and a call will produce a child process.fork features: call twice and return: The difference between the main process and the child process starts wi ...
Posted by woolyg on Sat, 19 Feb 2022 15:09:52 +0100
Build Prometheus+Grafana+Alertmanager
1. Principles and Features (Functions)
1. Main features
Multidimensional data model (Time series consists of metric name and labels for k/v)Flexible Query Language ( PromQL)Distributed storage without dependencies; Single-node servers are autonomousUse http protocol, pull mode to pull data, easy to understandMonitoring objectives, which can b ...
Posted by PHP Man on Sat, 19 Feb 2022 14:02:56 +0100
Introduction to Shell programming
Introduction to Shell programming
Symbols of references:
Single quotation mark: WYSIWYG
Double quotation marks: parse variables (treat the input as a whole)
Backquotes: parsing commands
No quotation marks: similar to double quotation marks
Why learn Shell programming Shell will be widely used in Linux system, and we also need to ...
Posted by Salsaboy on Sat, 19 Feb 2022 13:43:00 +0100
Actual combat: topological distribution constraint of k8s-2022.2.19
catalogue
Experimental environment
Experimental environment:
1,win10,vmwrokstation Virtual machine;
2,k8s Cluster: 3 sets centos7.6 1810 Virtual machine, 1 master node,2 individual node node
k8s version: v1.22.2
containerd://1.5.5
Experimental software
Link: https://pan.baidu.com/s/1CAC9j5yU-sg-aDfLPYVflg?pwd=b3jp Extraction co ...
Posted by jason257 on Sat, 19 Feb 2022 13:36:02 +0100
[Linux] producer consumer model
summary
Producer consumer model: a typical design pattern, which is a solution designed by people according to typical scenes
Application scenario: it is applied to the scenario where a large amount of data is generated and processed
Specific implementation: there are multiple producer and consumer threads to produce and process a huge amoun ...
Posted by seeker2921 on Sat, 19 Feb 2022 10:40:25 +0100
[Linux command] - 13 - how to set file special permissions
introduction
This article introduces three special permissions of Linux file system: suid, sgid and sticky.
Article catalogue
0 × 1. How to view the default permissions of files created by the current user0 × 2. How to add suid permission to a file0 × 3. How to add sgid permission to a folder0 × 4. How to add sticky p ...
Posted by mcsleazycrisps on Sat, 19 Feb 2022 10:29:07 +0100
Implementation of parity alliance chain under Linux
1, Download of parity
1. Open our Linux virtual machine in advance. Then open our folder and create a parity file. Of course, it can also be named after other names, preferably parity.
2. Then enter the PARITY folder, open it in the terminal, and enter the following under the authority of administrator:
wget https://re ...
Posted by tskweb on Sat, 19 Feb 2022 10:03:01 +0100
Migration and testing of Linux driver for EC20 4G module
https://blog.csdn.net/u011728480/article/details/78588827
#PS: if you want to reprint, please indicate the source. I own the copyright
#PS: This is only "myself" understand, if with your #If the principles conflict, please understand and don't spray
Introduction to EC20
EC20 is a 4G module of all Netcom, and provides detailed d ...
Posted by buttercupgreen on Sat, 19 Feb 2022 09:16:28 +0100
Installing mime-iv under Linux
1, Install PostgreSQL database on the server
1. yum command installation:
Select the system, Version (the version I selected is 12) and so on here. I use the yum command to install here. My command here is:
yum install https://download.postgresql.org/pub/repos/yum/reporpms/EL-6-x86_64/pgdg-redhat-repo-latest.noarch.rpm
yum install postgresql ...
Posted by doforumda on Sat, 19 Feb 2022 08:16:45 +0100
Configuring floating IP for linux
In the High Availability cluster environment, it is generally necessary to use floating IP to achieve high web availability.
For the concept of floating IP and why floating IP is needed, please refer to: Floating IP (FLOAT IP)
This article mainly talks about the actual operation steps:
It can be dual computer or multi computer. The main serv ...
Posted by amylou on Sat, 19 Feb 2022 07:16:11 +0100