NIO source code series: the most detailed analysis in the history of Selector III

NIO source code series: the most detailed analysis in the history of Selector III Selector registration serverSocketChannel.register(selector, SelectionKey.OP_ACCEPT); findKey(Selector sel) register(AbstractSelectableChannel ch, int ops, Object attachment) interestOps(int ops) setEventOps(Selectio ...

Posted by tlawless on Mon, 03 Feb 2020 09:31:15 -0800

Understand the structure and working principle of CPU in the code

I. Preface From the beginning of graduate school to half a year's work, I have been contacting MCU SOC controllers with CPU as the core, but because of professional reasons, I have no idea about the internal structure and working principle of CPU. Today, I broke the blind spot from a blog. It is hereby declared that the design idea and code of ...

Posted by cottonbuds2005 on Mon, 03 Feb 2020 01:53:57 -0800

Solution of LVS Dr + preserved

Reference resources https://www.cnblogs.com/liaojiafa/p/6087276.html Four hosts are in a LAN. The ip of LVS_master is 192.168.1.196, LVS backup is 192.168.1.197, the ip of two web servers is 192.168.1.200192.168.1.201, and the virtual ip is 192.168.1.198. It can be seen from the keepalived configuration file. The experimenta ...

Posted by voitek on Fri, 31 Jan 2020 07:53:49 -0800

lvs cluster implements lvs Dr model and lvs NAT model

ipvsadm The ipvsadm command is the management tool of lvs Cluster in the application layer. We can use this ipvsadm to manage the configuration of lvs. In fact, it implements the cluster service management: add, delete, change, RS management of cluster service: add, delete, change and view the cluster status. Management cluster service: add, ch ...

Posted by frao_0 on Fri, 31 Jan 2020 02:54:13 -0800

Linux Kernel 2.6.9 source code analysis -- accept

Linux Kernel 2.6.9 source code analysis – accept Let's take a look at the prototype: int accept(int sockfd, struct sockaddr *addr, socklen_t *addrlen)sockfd: this socket is used to listen to a port. When a client connects with the server, it uses this port number, which is associated with the so ...

Posted by ldoozer on Thu, 30 Jan 2020 04:18:10 -0800

Spring 5 Learning Series 3 register components 3 @ Conditional and @ Import annotation usage

The previous article mainly introduced two methods of @ bean @ ComponentScan package scanning injection. Today, I will introduce the related usage of @ Conditional injection and @ import component import 1. First, the usage of @ Conditional: judge according to certain conditions, register the beans ...

Posted by gkelley091565 on Thu, 30 Jan 2020 00:32:38 -0800

Stack migration / stack hijacking

Example https://github.com/scwuaptx/HITCON-Training/tree/master/LAB/lab6   #include <stdio.h> #include <stdlib.h> #include <unistd.h> int count = 1337 ; int main(){ if(count != 1337) exit(1); count++; char buf[40]; setvbuf(stdout,0,2,0); puts("Try your ...

Posted by shelluk on Wed, 29 Jan 2020 22:21:29 -0800

Linux file and directory operation commands

1,cd (change directory) switch to the specified directory -Return to last directory .. Return to the upper directory Enter to return to home directory /Root directory 2,cp (copy) copy a file or directory -r -R Recursively copy the contents of this directory and its subdirectories -p Copy past with file properties -f Force copy without aski ...

Posted by 0riole on Wed, 29 Jan 2020 03:46:43 -0800

Installation of Docker in Centos8 of container technology

Installation of Docker in Centos8 of container technology 1, Docker introduction Docker Manual: https://docs.docker.com/install/linux/docker-ce/centos/ Docker is an open source / 246339) application container engine, which allows developers to package their applications and dependency packages into ...

Posted by noiseusse on Tue, 28 Jan 2020 02:15:11 -0800

Basic concept and operation of Git

Blog Outline:1, Get to know Git2, Git installation configuration3, Git workflow4, Git workspace, staging area, and version Library5, Git basic operation 1, Get to know Git Git is an open source distributed version control system for agile and efficient processing of any large or small project. Git is an open source version control software d ...

Posted by tony-kidsdirect on Sun, 26 Jan 2020 08:24:01 -0800