Linux Namespace Starter Series: Namespace API
Linux Namespace is a kernel-level environment isolation method provided by Linux.Officially, Linux Namespace encapsulates global system resources in an abstraction so that processes within the namespace consider themselves to have separate resource instances.This technology did not make much waves, but the rise of container technology brought i ...
Posted by jonabomer on Sun, 29 Mar 2020 05:51:03 +0200
memcached high availability cluster building
memcached high availability cluster buildingWe need three servers:
Main server 192.168.247.206
From server 192.168.247.160
Client 192.168.247.161master serverConfigure memcached primary and secondary cache nodes
[root@lamp ~]# hostnamectl set-hostname master
[root@lamp ~]# su
[root@master ~]#
[root@master ~]# mkdir /abc
mkdir: cannot create ...
Posted by jdeer0618 on Mon, 23 Mar 2020 15:30:20 +0100
Ansible ad hoc and common modules
Ansible execution result information - color description; ansible ad hoc description; how to view help documents and common module details
Host planning
Add user account
Explain:
1. Login account used by operation and maintenance personnel;
2. All businesses are placed in the "home directory of yun users" under / app / to avoid m ...
Posted by peteraub on Thu, 19 Mar 2020 11:01:10 +0100
Add module to kernel (failed log record). md
step
Adding modules to the kernel
Write Driver
Add drivers to the linux source directory, typically inside / Drivers
Add the project compilation option corresponding to the driver in the Kconfig file where the directory is located
Add compilation statements for new drivers to the Makefile file file ...
Posted by jonnyw6969 on Mon, 16 Mar 2020 02:26:13 +0100
java WeChat official account access
a. WeChat official account
1. It is divided into service number, subscription number, applet and enterprise wechat;
2. when users send messages to WeChat official account, they send the message to WeChat server.
The administrator of the official account saves the specified rules on the management pl ...
Posted by yddib on Sun, 15 Mar 2020 10:00:34 +0100
Sorting algorithm summary -- C + + implementation of various sorting
Sort summary:
The following figure shows the temporal and spatial complexity of each sorting:
Bubble sort:
//Bubble sort
void bubble_sort(vector<int> &v){
for(int i = 0;i < v.size()-1;i++){//n-1 trip
for(int j = 0;j< v.size()-i-1;j++){//n- trips -1
if(v[j] > v[j+1]){
int ...
Posted by mr_zog on Wed, 04 Mar 2020 16:10:03 +0100
VS Code writes C program. Configure vscode
1. Environmental preparation
Download compiler: x86-8.1.0-release-posix-seh-rt_v6-rev0.7z
Links: Portal Extraction code: e99j
2. Install compiler: the next step is a 7z compression package. If you don't decompress, you can baidu "how to decompress the compressed package". After decompres ...
Posted by kovudalion on Mon, 02 Mar 2020 07:41:02 +0100
Proficient in awk series (18): if, while, switch, for statements of awk process control
Go back to:
Linux series
Shell series
Awk series
Process control statement
Note: statement blocks in awk have no scope and are global variables.
if (condition) statement [ else statement ]
expr1?expr2:expr3
while (condition) statement
do statement while (condition)
for (expr1; expr2; expr3) statement
for (var in array) statement
break
co ...
Posted by jacksonmj on Sat, 29 Feb 2020 05:46:39 +0100
Android's self rescue -- rescue party
Preface
I don't know if you've ever met it. Sometimes the system starts abnormally, and it will directly enter the error interface of a robot. I have encountered that after OTA upgrade, it will restart automatically after startup and enter the robot error interface. It's found that there is a process ...
Posted by mharju on Mon, 24 Feb 2020 12:46:42 +0100
Text gadget for shell programming
1. Text Processing Tools1. grep tools2. cut tool3. sort tool4. uniq Tools5. tee tools6. diff tools7. Pase Tool2. Characteristics of bash1. Auto-Completion of Commands and Files2. Common wildcards3. Quotes in bash
1. Text Processing Tools
1. grep tools
grep is a==row==filter tool; used to filter rows based on keywords
Grammar and Options
Gr ...
Posted by released on Thu, 20 Feb 2020 19:20:16 +0100