Detailed explanation of zero foundation to proficient sed command

preface This section explains the usage of sed in detail, combined with the regular expressions learned before. The article is completely from Xiaobai's point of view. It took a long time to edit it so that everyone can understand and operate it as much as possible. sed introduction 1. sed introduction vi is to edit text interacti ...

Added by clarket on Sat, 06 Nov 2021 08:57:03 +0200

Logrotate log partition of Linux Log Management artifact

preface: Some services will automatically generate a large number of log files, which will occupy disk space if not limited. If you simply use the scheduled task crontab to delete, it is not flexible. At this time, you need the log artifact logrotate. logrotate tool is a tool built in the system to facilitate log management. The system will r ...

Added by ljzxtww on Fri, 05 Nov 2021 02:48:13 +0200

The Tcp server always sleep s, and the client keeps sending data

Question: "a tcp server and a tcp client. After the client establishes a connection with the server, the server always sleep s, and then the client always sends data". Before answering this question, let's think about the characteristics of tcp and the general process of tcp sending data: First of all, tcp is a reliable transmission ...

Added by djbuddhi on Thu, 04 Nov 2021 13:30:13 +0200

Jingdong nerd Qinglong panel + XDD puls tutorial integration (additional QQ Robot Tutorial) [updated on November 4, 2021]

preface It is recommended that the server 2-core 2G and above take a look at this tutorial. The 1-core 2G runs very hard. After loading, there is a QQ robot query function. Let's see the last picture That's almost the effect. Join the communication group 334996635, and all great gods will answer for you, as shown in the figure above! Th ...

Added by NightCoder on Thu, 04 Nov 2021 06:37:44 +0200

20 commands commonly used in linux (Part 2)

file commandThis command is used to judge the basic data of the file after the file command. Because the file type is not divided later under Linux, this command is very useful to us.> file rumenz.txt #View the file type of rumenz.txt rumenz.txt: ASCII text > file /usr/bin/ls #View the file type of the command ls /usr/bin/ls: ELF 64-bit ...

Added by php_gromnie on Wed, 03 Nov 2021 19:39:36 +0200

Saltstack data system

Saltstack data system 1.saltstack data system SaltStack has two major data systems: GrainsPillar 2.saltstack component (Grains) Grains is a component of SaltStack, which stores the information collected when minion starts. Grains is one of the most important components in SaltStack components, because we often use it in the process of ...

Added by perficut on Tue, 02 Nov 2021 20:41:08 +0200

Build JVM micro service monitoring based on docker (Prometheus+Grafana)

1, JVM monitoring Installing node based on docker_ exporter+prometheus+grafana Download Image package: docker pull prom/node_exporter docker pull prom/prometheus docker pull grafana/grafana docker pull timonwong/prometheus-webhook-dingtalk 1. Start node exporter docker run -d --name node_exporter -p 9100:9100 \ -v "/proc:/host/proc:ro ...

Added by bodzan on Tue, 02 Nov 2021 09:27:38 +0200

Docker builds RabbitMQ cluster Nginx+Keepalived high availability

Single nginx agent + mirror queue Pull image # Pull image docker pull rabbitmq:3.8.7-management # Create mount directory mkdir -p /data/rabbitmqcluster/{rabbitmq01,rabbitmq02,rabbitmq03} Create container # first docker run -d --hostname rabbitmq01 --restart=always --name rabbitmqCluster01 -v /data/rabbitmqcluster/rabbitmq01:/var/lib/r ...

Added by and1c on Mon, 01 Nov 2021 19:26:55 +0200

Registering platform bus devices and drivers under Linux

preface The main content of this paper is to register platform bus devices and platform bus drivers under Linux. 1, platform bus Platform bus model: a bus virtualized by the Linux kernel is not a real wire. The platform bus model divides the original driver c file into two C files, one is device.c and the other is driver.c, in which th ...

Added by sgtbash on Mon, 01 Nov 2021 15:48:25 +0200

Elegant installation of OpenStack

The original text was written for the pike version half a year ago. Here is an update for the Queen version. =========================== There are many OpenStack installation methods, such as chef, ansible, puppet, fuel, etc. If it is the development and preliminary research of OpenStack, devstack should be the installation method with the lo ...

Added by natepizzle on Mon, 01 Nov 2021 11:56:48 +0200