[Linux network programming learning] preliminary knowledge (network byte order, IP address conversion function, sockaddr data structure)
This is Niuke Linux C + + course and dark horse Linux system programming notes.
1. Network byte order
We already know that multi byte data in memory can be divided into large end and small end relative to memory address. The multi byte data in the disk file can also be divided into large end and small end relative to the offset address in th ...
Posted by Tsukiyomi on Tue, 09 Nov 2021 21:58:18 +0100
MySQL MHA high availability cluster deployment and failover
1, MHA concept
MHA (MasterHigh Availability) is a set of excellent software for failover and master-slave replication in MySQL high availability environment. The emergence of MHA is to solve the problem of MySQL single point. During MySQL failover, MHA can automatically complete the failover operation within 0-30 seconds. MHA can ensure th ...
Posted by fireineyes on Tue, 09 Nov 2021 02:02:01 +0100
Explanation of Redis database
catalogue
introduction
1, Relational database and non relational database
(1) , relational database
(2) , non relational database
(3) , relational database and non relational database
(1) Different data storage methods
(2) . different expansion modes
(3) Support for transactional is different
(4) Background of non relational database
...
Posted by RyanSF07 on Tue, 09 Nov 2021 00:44:16 +0100
Linux 0.11 kernel source code analysis (bootect. S)
Intel 80x86 series CPUs can run in 16 bit real mode and 32-bit protected mode respectively. In order to be compatible and solve the initial startup problem, Intel designed the hardware of all 80x86 series CPUs, including the latest model CPUs, to run in 16 bit real mode when powered on.
The CPU hardware logic is designed to forcibly set the va ...
Posted by frANZi on Mon, 08 Nov 2021 22:49:47 +0100
linux, source replacement, common Python operations, GPU server configuration, python virtual environment migration, offline deployment
linux configuration
Replace source
sudo chmod 777 /etc/apt/sources.list
vim /etc/apt/sources.list
Enter 10000 first, and then press d repeatedly to delete the existing
# The source image is annotated by default to improve apt update speed. You can cancel the annotation if necessary
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ ...
Posted by superhaggis on Mon, 08 Nov 2021 20:20:09 +0100
Chapter 2 Cache and memory
This blog is a brief note of DPDK in simple terms
2.1 introduction to storage system
For packet processing, there are mainly two parts (personal understanding), one is CPU The other is CPU Scheduling of instructions and data to be processed. How to give full play CPU On the basis of performance Cache,Memory, SATA Disk, PCIe Devices (network ...
Posted by dbradbury on Mon, 08 Nov 2021 11:29:28 +0100
ansible implementation handler, processing task failure, file management
##Run tasks conditionally ####-Syntax of conditional tasks ######The when statement is used to run a task conditionally. It takes the condition to be tested as the value. If the conditions are met. Then run the task. If the conditions are not met, skip the task.
######Example:
When when The value of is false Task execution will be skipped whe ...
Posted by fireant on Sun, 07 Nov 2021 22:09:39 +0100
iptables and firewalld management
1, Introduction to fire wall
In Linux, the firewall strategy is implemented based on netfilter. 1. netfilter: there is a security plug-in netfilter (access control list) in the kernel. There are many detailed rules in this list. When this rule is allowed or denied, it can control whether other hosts can access, which greatly improves the s ...
Posted by xiaix on Sun, 07 Nov 2021 21:33:19 +0100
Mac Homebrew installation and replacement of domestic image
brief introduction
Homebrew tool can be regarded as a package manager on mac, similar to yum for centos or redhat and apt get for ubuntu. Installing packages will automatically install dependent packages. Homebrew is a free and open source package management system to simplify the software installation process on mac OS and linux systems. It h ...
Posted by scratchwax2003 on Sat, 06 Nov 2021 23:06:02 +0100
Linux basic commands
Linux system can use man [command] to view the use documents of each command.
Directory management
The directory structure of Linux is a tree structure, and the top-level directory is the root directory /.
Other directories are added to the tree by mounting and removed by unmounting.
First, we need to know what absolute path and relative ...
Posted by medar on Sat, 06 Nov 2021 16:53:58 +0100