3, Higher order instructions for Linux (very detailed version)
3.1 vi/vim editor and its related instructions
3.1.1 why study VI/VIM
<span style="background-color:#333333"><span style="color:#B8bfc6 "> 1. All Unix like systems come with vi text editor
2,The editing interface of many applications will actively call vi editor
3,vim Have the ability of program editing, can actively ...
Posted on Tue, 30 Nov 2021 07:38:50 -0500 by stueee
Detailed explanation of docker compose configuration
1 format of configuration file
An example docker-compose.ymlservices:
elasticsearch:
image: elasticsearch:7.14.2
container_name: es
environment:
discovery.type: single-node
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
ports:
- "9200:9200"
- "9300:9300"
healthcheck:
test: ["CMD-SHELL", "curl --silent --f ...
Posted on Tue, 30 Nov 2021 05:29:41 -0500 by pullaratt
Socket service example: TCP (stream oriented socket) implements ECHO server and client
The so-called ECHO service is to print relevant parameters on the screen. The relevant application process is as follows:
Server logic
1. Create a server socket after the server is started, and always call accept after making corresponding settings (2) to wait for the connection of the client. After the client is connected normally, create a ...
Posted on Tue, 30 Nov 2021 02:03:22 -0500 by sarabjit
Mutex of C + + multithread learning thread synchronization
preface
Last article C + + multithreading learning (I) thread creation and management We have a preliminary understanding of the concept of thread and the process that has been proposed with thread, and the significance and difference between them. An example is given at the end of the article. I initially learned how to create multithreading ...
Posted on Tue, 30 Nov 2021 00:30:02 -0500 by agmorgan
Summary of interview questions filled by Xiyou Linux interest group in 2019
Operation results:
Hexadecimal small end sorting method is used during initialization of structure num:
The hexadecimal address of xiyouLinux is (0x78 0x69 0x79 0x6f 0x75 0x4c 0x69 0x6e 0x75 0x78)
You can refer to the article on the large and small ends: Byte order: big endian and small endian - Broglie - blog Garden
Me ...
Posted on Mon, 29 Nov 2021 23:35:08 -0500 by vividona
shell basic learning notes
Shell provides users with a simple interface to interact with the operating system, and natively supports redirection, file operation and other features, so that they can more easily complete some script tasks. A shell script is actually a collection of a series of statements supported by the shell to perform a series of tasks. Here's the main ...
Posted on Mon, 29 Nov 2021 22:56:03 -0500 by j1bird2k
Redis_ Business_ Second kill case
Redis_ Business_ Second kill case
1. Solve the transaction operations of counters and personnel records
Simple version: index.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<ht ...
Posted on Mon, 29 Nov 2021 17:46:18 -0500 by seoreferrals
Compile the Linux kernel and run a minimal file system
Development environment: ubuntu 14.04
Linux source code version: linux-4.9.229
Busybox source code version: busybox-1.30.0
qemu-system-x86_64 version: 2.0.0
This article teaches you to complete the following process:
1. Download linux and compile the linux kernel source code
2. Compile busybox
3. Make a minimum root file system
4.qemu s ...
Posted on Mon, 29 Nov 2021 16:22:35 -0500 by keefe007
Ansible chapter I installation and deployment of ansible
1, Installation of Ansible
epel source dnf install ansible -y ansible --viersion
Basic information of ansible: /etc/ansible/ansible.conf ## Global configuration file, rarely modified by default /etc/ansible/hosts &nb ...
Posted on Mon, 29 Nov 2021 15:39:54 -0500 by firedrop84
Use systemd timer instead of cron job
I'm working on putting my cron The job is migrated to the systemd timer. I have been using timers for many years, but generally speaking, my knowledge is only enough to support my current job. But in my research systemd series During the process, I found that the systemd timer has some very interesting capabilities.
...
Posted on Mon, 29 Nov 2021 02:53:16 -0500 by iambradn