Master slave replication of a database that has been running for a period of time
Preface: a few days ago, the master-slave replication of MySQL database that has been running for a period of time and has not opened bin log was made. Hereby, the detailed operation steps and instructions are recorded. Note that this synchronization does not use ...
Posted by virtuexru on Wed, 11 May 2022 23:14:11 +0300
Introduction and principle analysis of Nginx
Introduction to Nginx
Nginx is an asynchronous web server that can be used as a reverse proxy, load balancing, and caching server
Web server (common)
Reverse proxy server (common)
Mail proxy server (rarely used)
General TCP / UDP proxy server (four layer scheduler)
Posted by dough boy on Wed, 11 May 2022 22:59:56 +0300
File system management
Logical structure of disk
The size of each sector is fixed, 512Byte. A sector is also the smallest storage unit of a disk
The size of the hard disk is the number of Heads used × Cylinders × sector number × The size of each sector is calculated according to the formula & ...
The characteristics of zookeeper and the use of common commands
zookeeper is a distributed, open source distributed application coordination service. It is a software that provides consistency services for distributed applications.
The application scenarios of zookeeper are as follows:
Data publishing subscription
Naming ser ...
Posted by neoboffins on Wed, 11 May 2022 07:06:37 +0300
1, gcc generation uses a static library and so dynamic library
1) Create a new folder test1
Enter folder test1
Use vim command to generate hello h，hello.c，main.c three documents
void hello(const char *name);
Posted by duelist on Wed, 11 May 2022 05:27:18 +0300
This chapter will be divided into two parts to explain. The first half will introduce the use scenarios and basic concepts of threads, and illustrate the basic process from thread creation to exit to recycling through example code. The latter part will explain through the example code that if the thread is well controlled, the concepts and usag ...
Posted by brash on Wed, 11 May 2022 02:57:23 +0300
The last article introduced the structure of sds and how to use sds. In this chapter, we will go back to the place of reading io data to see how redis reads data from io and finally converts it into the process of executing commands. This article needs to be familiar with the previous two articles first. Students who haven't read ...
Posted by dustbuster on Tue, 10 May 2022 08:16:03 +0300
Several basic knowledge points of thread scheduling
When multi-threaded concurrent execution, many students do not know what problems will be caused by the randomness of scheduling. It is necessary to know that if access to critical resources is not locked, it will lead to some emergencies or even deadlocks.
Regarding thread scheduling, you nee ...
Posted by Adrianphp on Tue, 10 May 2022 04:36:15 +0300
A view of linux server performance
1.1 cpu performance view
1. View the number of physical CPUs:
cat /proc/cpuinfo |grep "physical id"|sort|uniq|wc -l
2. View the number of core s in each physical cpu:
cat /proc/cpuinfo |grep "cpu cores"|wc -l
3. Number of logical CPUs:
cat /proc/cpuinfo |grep "processor"|wc -l
Number of physical CPU ...