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 […]
Tag: ode
Node builds the back-end framework [modular, using MySQL]
This article may be different from the general use of express to build a server with less than 10 lines of code, because I have used springboot to build the back-end framework before, so I feel that although this method is simple, it may lack Extensibility and Normative 0. Project Background Currently I am developing […]
JUC Advanced Five – volatile and Java memory model
JUC advanced five-volatile and Java memory model 1. The memory semantics of volatile When writing a volatile variable, JMM will immediately refresh the value of the shared variable in the local memory corresponding to the thread back to the main memory. When reading a volatile variable, JMM will invalidate the local memory corresponding to the […]
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 www.kernel.org, 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 […]
How to Set Up a Node.js Application for Production on Ubuntu 20.04
introduce Node.js is an open-source JavaScript runtime environment for building server-side and network applications. The platform runs on Linux, macOS, FreeBSD, and Windows. Although you can run Node.js applications from the command line, this tutorial will focus on running them as services. This means they will restart on reboot or failure, and are safe to […]
[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 […]
The way you probably never used to debug Vue3 (open source project) source code
1 Introduction Hello everyone, I am Ruochuan. I have devoted myself to organizing source code sharing for more than a year. If you are interested, you can add me on WeChat lxchuan12 to participate. In addition, if you want to learn source code, I highly recommend paying attention to my column “Learning the Overall Architecture […]
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 […]