User mode –fork function to create a process

We generally use the Shell command line to start a program, which first creates a subprocess. However, because the Shell command line program is relatively complicated, we simplify the Shell command line program for easier understanding, and use the following small piece of code to see how to create a subprocess in user mode. #include […]

Spring Boot integrates RocketMQ to realize normal, delay, transaction message sending and receiving, PULL consumption mode and enable ACL | Spring Cloud 30

1. Foreword In the previous section, we had a basic understanding of RocketMQ through the following chapters: docker-compose builds RocketMQ 5.1.0 cluster (dual master and dual slave mode) | Spring Cloud 28 docker-compose build RocketMQ 5.1.0 cluster to enable ACL permission control | Spring Cloud 29 Now let’s formally study the integration of RocketMQ in […]

Use VScode to read Linux source code

Install and compile dependencies sudo apt install build-essential libncurses-dev bison flex libssl-dev libelf-dev Download kernel source code Download the version you want from, here is 5.4.34. Configure kernel compilation options cd linux-5.4.34/ make menuconfig The relevant configurations to be noted are as follows make menuconfig # Open debug related options Kernel hacking —> Compile-time […]

[RocketMQ] Automatic fault recovery cluster practice based on RocketMQ 5.1.0 version (Controller embedded mode)

Article directory need Prepare nameserver dashboard Broker exporter problems encountered write at the end Requirements RocketMQ version is 5.1.0; Build a cluster of 3 masters and 3 slaves, adopt cross-deployment (to avoid two machines being master-slave each other), and save machine resources; 3 nameservers, 1 exporter, 1 dashboard; Supports automatic fault recovery, and the controller […]

SpringBoot integrates Logback+ MDC request tracking + EvaluatorFilter to write Java code filtering

Article directory SpringBoot integrates Logback + MDC request tracking + EvaluatorFilter to write Java code filter conditions Introduce dependencies logback-dev.xml configuration file application.yml configuration Configure the MDC filter Configure the filter order (the order of using annotations in Filter sometimes fails) Run the project to display the log results SpringBoot integrates Logback + MDC request […]

STA mode – wpa_supplicant installation and use

wpa_supplicant is an open source software project, which realizes the function of managing and controlling wireless networks in WIFI STA mode. It is a tool for connecting and configuring WIFI, mainly including two programs: wpa_supplicant and wpa_cli. Prepare third-party software as follows: Download link: wpa_supplicant software package free download One, wpa_supplicant installation Description: wpa_supplicant depends […]