Shell distribution script
In the cluster, we often have this requirement: copy files to the same directory of all nodes in a circular way, and use commands separately from one node to another to improve efficiency.
Encapsulation on rsync
rsync command analysis
rsync remote synchronization tool
rsync is mainly ...
Posted by grantf on Sun, 21 Nov 2021 23:16:16 -0800
Copy process fork method
First, let's look at the fork method: create a child process. The process calling fork function is the parent process, and the newly generated process is the child process.
The format is:
Return the pid of the child process in the parent process, 0 in the child process, and - ...
Posted by cornelalexa on Sun, 21 Nov 2021 18:22:12 -0800
1. Java's own tools and methods
1.1 the list set is spliced into comma separated strings 1.2 compare whether two strings are equal, ignoring case 1.3 compare whether two objects are equal 1.4 intersection of two List sets 2. apache commons tool class library
2.1 commons Lang, enhanced version of java.lang 2.2 common collections co ...
"Ftrace is a tracking tool built into the Linux kernel. Many Linux distributions have enabled various configurations of ftrace in the latest versions. One of the benefits of ftrace to Linux is that it can view what happens inside the kernel, better find the exact cause of the crash, and help developers create the right solution ...
Posted by Rhiknow on Sun, 21 Nov 2021 12:39:28 -0800
1.Four centos7 servers, one client
In this experiment, four servers are used, one server installs haproxy for scheduling, the other two servers build nginx to provide web services, and one client tests access.
1, GFS overview
1. File system composition
2. File system role
3. File system components
4. GFS features
5. Working principle
2, GFS volume
1. GFS volume type
2. Characteristics of the three basic volumes
Distributed striped volume
Distributed replication volume
3. Four server c ...
Posted by pck76 on Sun, 21 Nov 2021 01:16:01 -0800
NTP is the network time protocol, which is used to synchronize the time of each computer in the network. NTP and chrony cannot exist at the same time. You can only use one of them and remove the other mask Chrony is an open source free software, which can help you keep the system clock synchronized with the clock server (NTP ...
Posted by martinco on Sat, 20 Nov 2021 18:53:56 -0800
Thread is the smallest unit that the operating system can perform scheduling operation. It is included in the process and is the actual operation unit in the process. A thread refers to a single sequential control flow in a process. Multiple threads can be concurrent in a process, and each thread executes different tasks in parallel.
linux ope ...
This series of articles is translated from the official cmake tutorial: [cmake tutorial](
Sample program address: [github.com/rangaofei/t...](
I won't just stay in the official tutorial. As an Android Developer, I really don't have linux c program development experience. I hope the big guys will forgive me. The tutorial is completed u ...
Posted by GiaTuan on Sat, 20 Nov 2021 09:28:28 -0800
Most of the Linux kernel is C language. It is recommended to first look at the Linux kernel development, Robert Love, that is, LKD.
Linux is a dynamic system, which can adapt to the changing computing needs. The performance of Linux computing requirements is centered on the general abstraction of processes. Processes can be short-term (a comma ...
Posted by trampolinejoe on Sat, 20 Nov 2021 07:15:23 -0800