When the kernel receives a network packet

From network cable to network card Now, there is a packet, which will enter the network card from the network cable. This data packet is sent from another computer far away. After going through many difficulties and obstacles, it reaches the network card of this computer. This process can be read If you design the network Anyway, now ...

Posted by jhbalaji on Tue, 15 Feb 2022 00:49:34 +0100

How to install and configure NTP server and client on Linux?

preface NTP time synchronization is a time synchronization network technology. There are many kinds of time synchronization technologies, each of which has its own characteristics, and there are great differences in the time synchronization accuracy of different technologies. 1, Chrony 1. Brief description Note that NTP is a netwo ...

Posted by marty on Mon, 14 Feb 2022 16:01:15 +0100

awk report generator for Linux text processing three swordsmen

awk report generator for Linux text processing three swordsmen 1, awk 1. General Origin: born in Bell Labs in the 1970s, CentOS 7 now uses gawk AWK is named because it took three founders Alfred Aho, Peter weinberger, And Brian Kernighan's Family Name. Overview: AWK is a language for processing text files and a powerful text analysis tool. ...

Posted by Nukedesign on Mon, 14 Feb 2022 15:57:20 +0100

Add system call to print process pid in tree structure

Tip: pay attention to give the virtual machine a large enough disk, more than 60G 1, Design ideas Download linux kernel source code Add the system call number to the system call table Write custom system call functions in the system call header file Modify the kernel source code and add the implementation of custom system call fu ...

Posted by binto on Mon, 14 Feb 2022 14:38:00 +0100

Build rocketmq4.0 under Linux 5.2 cluster and set startup and self startup

1, Environmental description CentOS7;RocketMQ4.5.2;The firewall is closed; Virtual machine address:192.168.0.40,192.168.0.41,192.168.0.42,192.168.0.75; Because other things have been built on the virtual machine before, the alias will be specified this time, which can be accessed directly through ip and port; 2, Software descripti ...

Posted by saedm on Mon, 14 Feb 2022 11:23:56 +0100

Linux partition details

Linux partition details It is divided into two parts 1. Hard disk partition when installing Linux system. 2. Linux add hard disk partition 1. Hard disk partition when installing Linux system. Usually, the hard disk is about 500G. 1.1 partitions that must exist /The partition that must exist when partitioning. All level-1 directories are ...

Posted by dwest on Mon, 14 Feb 2022 08:32:45 +0100

muduo library base source code analysis IV (thread encapsulation)

Thread identifier: we know that every Linux process has a pid, type pid_t. Obtained by getpid(). POSIX thread under Linux also has an id, type pthread_id, by pthread_self(), the id is maintained by the thread library, and its id space is independent of each process (that is, threads in different processes may have the same id). The thread imple ...

Posted by nagrgk on Mon, 14 Feb 2022 07:58:46 +0100

linux common commands 2

preparation # Switch the directory to / export / and empty the contents cd /export/ && rm -rf /export/* && tree # Add a directory and switch directories and add files mkdir -p /export/aaa/bbb/ccc/ddd/eee/ touch /export/aaa/bbb/ccc/ddd/eee/abc.txt touch /export/aaa/123.txt touch /export/aaa/312.txt # View the contents of ...

Posted by buzz on Sun, 13 Feb 2022 17:43:49 +0100

Android NDK -- a summary of fork vs vfork in Linux application creation process

introduction Unix series processes are subprocesses obtained by copying init process or kernel process. The specific details of different implementations are different. Linux provides three kinds of fork, vfork and clone system calls. 1, Unix process overview In Unix, the CPU allocates and schedules resources with the process as the allo ...

Posted by lbaxterl on Sun, 13 Feb 2022 17:24:50 +0100

[rk356x] [firefly Linux] take you through each partition of Ubuntu firmware during a break

In order to facilitate development and product customization, Ruixin micro has defined a set of firmware partitions, and these partition information is stored in parameter Txt file, Firefly defines its own Ubuntu partition with reference to this file, and the file is parameter Ubuntu Txt, stored in Linux_ Under the device/rockchip/rk356x d ...

Posted by Serpent7 on Sun, 13 Feb 2022 11:56:09 +0100