[C language] Linux Socket select multiplexing
preface
After learning multi process and multi thread, in contrast, when there are multiple concurrent connection requests, the multi process or multi thread model needs to create a process or thread for each connection, and most of these processes or threads are blocked. If 1000 clients are connected to the server at this time, 1000 pr ...
Added by Eal on Mon, 10 Jan 2022 21:46:54 +0200
❤️ c + + get the current time, there is a small detail! ❤️
c + + get the current time
1. Basic concepts
time stamp
Timestamp is a time representation. It is defined as the total number of seconds from 00:00:00 on January 1, 1970 Greenwich mean time to the present.
typedef __int64 __time64_t;
typedef __time64_t time_t;
In c + +, we define the data type time_t is the timestamp. At present, a c ...
Added by BittenApple on Mon, 10 Jan 2022 21:18:27 +0200
linux system services
1. System startup process
2. Start operation level
2.1 what is the operation level
Run level: refers to the functional level at which the operating system is running
system V init run levelsystemd target nameeffect0runlevel0.target,poweroff.targetShut down1runlevel1.target,rescue.targetSingle user mode (change password)2runlevel2.target,m ...
Added by howler on Mon, 10 Jan 2022 19:08:47 +0200
Keepalived high availability for Linux
1, High availability introduction
1.1 what is high availability
Generally, it means that two machines start the same business system. When one machine goes down, the other server can quickly take over, which is insensitive to the accessed users.
1.2 common tools
Hardware commonly used: F5
Software usually uses: Keepalived
1.3 how does keepali ...
Added by Petty_Crim on Mon, 10 Jan 2022 15:53:48 +0200
First acquaintance with docker (the advantages are really huge, which is much easier to use than virtual machines)
Background:
In terms of linux, the linux operating system will have a main process with pid=1 and derive other processes to control different services For example: PID = 2 -- > Python PID = 3 – > java pid4 – > PHP, the three services may affect each other Users expect to run these three different services in different ...
Added by Static_Nexus on Mon, 10 Jan 2022 13:55:29 +0200
High availability and popularity
High availability
Generally, it means that two machines start the same business system. When one machine goes down, the other server can quickly take over, which is insensitive to the accessed users.
For example, the company's network accesses the Internet through the gateway. What if the router fails and the gateway can't forward messages, a ...
Added by Synergic on Mon, 10 Jan 2022 13:44:54 +0200
Teach you how to upload code to gitee server
I have written several small projects for novices,
In order to facilitate everyone to learn and download the code,
Decided to upload the code to the gitee server.
It has to be said that git is a very easy-to-use code version management tool,
This article teaches you how to upload your own code to Gitee.
1. Registered account
Open web page
https ...
Added by starter911 on Mon, 10 Jan 2022 13:23:36 +0200
Linux network programming - using the pipe of interprocess communication on the server side
A basic concept of interprocess communication
1.1 basic understanding of interprocess communication
Inter Process Communication (IPC)
Interprocess communication means that two different processes can exchange data. In order to achieve this, the operating system kernel needs to provide memory space that two processes can access at the same ti ...
Added by en on Mon, 10 Jan 2022 13:10:21 +0200
Come and play with LiteOS component: RHas
Absrtact: RHash is a hash function library written in C language. It is a console utility for calculating and verifying magnetic links and various message summaries.
This article is shared from Huawei cloud community< A taste of LiteOS components - play RHas >, by Lionlace.
RHash is a hash function library written in C language, which ...
Added by pyro3k on Mon, 10 Jan 2022 10:17:41 +0200
DNS server setup
Role of DNS Service
The function of converting domain names to IP addresses
DNS concept
DNS is a distributed database. The naming system adopts a hierarchical logical structure, just like an inverted tree. This logical tree structure is called domain name space. Since DNS divides the domain name space, organizations can use their own domain ...
Added by theflea912 on Mon, 10 Jan 2022 07:19:27 +0200