Batch Linux server patrol through Shell script

1. Batch inspection process Generally, a script consists of three parts, including:(1) Patrol script: collect and return performance information or indicators;(2) Distribute the patrol script: the main server connects the corresponding host through the exception tool according to the account password in the information list of the server to be ...

Posted on Tue, 18 Feb 2020 05:31:39 -0500 by nicdp

mongodb opens oplog for incremental backup

Single MongoDB instance opens Oplog, configures replica set, and makes incremental backup Experimental environment system:CentOS Linux release 7.7.1908 (Core) mongo:v4.0.0 Open Privilege Verification Environment oplog detailsOfficial introduction to oplog Configure replica set to open oplog Starting i ...

Posted on Mon, 17 Feb 2020 22:04:27 -0500 by jorgep

CentOS 8 Deployment ELK Log Analysis Platform

demand 1. Developers cannot log on to online servers to view logs2. Each system has logs, so log fragmentation is difficult to find3. Large amount of log data, slow lookup, inadequate real-time data Solution: Deploy ELK Platform Introduction to ELK ELK is the abbreviation of three open source software, namely Elasticsearch, Logstash, Kibana ...

Posted on Mon, 17 Feb 2020 19:30:24 -0500 by gentusmaximus

pv and pvc practice of k8s persistent storage

In a previous article on k8s deploying zabbix monitoring system, we used hostPath to persist mysql data and simple use of emptyDir.If we want to deploy a production-level application on k8s, it is clear that using hostPath and emptyDir to persist our data is not possible for data persistence. We also need more reliable storage to hold the pers ...

Posted on Mon, 17 Feb 2020 18:15:21 -0500 by DeathStar

sed Common Commands

sed is a text processing tool that allows you to replace, add, select, and so on. formatsed option action file name Replace a field in a file with sedFor example, if you write a yaml file with a field in the middle that needs to be modified, you can use sed to replace it on the outside command lineFormat: sed's/original/new/filename [root@zhao ...

Posted on Mon, 17 Feb 2020 14:24:12 -0500 by mubashir

C++ Papers promised me not to go anywhere else if/else?

Learn English one sentence a day and make a little progress every day: "Without purpose, the days would have ended, as such days always end, in disintegration." "Without a goal, the day will end. It always ends in pieces." Preface Yang Ge wrote an interesting article before " Promise me, don't go anywhere else if/else?| Cod ...

Posted on Sat, 15 Feb 2020 00:46:40 -0500 by Tjk

Regular expression and file formatting

Regular expression and file format processing 1. What is regular expression 2. Some advanced parameters of grep 2.1. Basic regular expression exercise 3.sed tools 4.awk's easy-to-use data processing tools 1. What is regular expression Regular expression is the way to deal with characters. It dea ...

Posted on Fri, 14 Feb 2020 08:27:20 -0500 by scavok

shell programming -- common commands

Directory header 1. diff and patch commands 2. cut command 3. sort command 4. uniq command 5. seq command 6. join command 7. tr command 7. xargs command 1. diff and patch commands diff usually compares the contents of files, and patch is often used to make patches< indicates the contents of ...

Posted on Fri, 14 Feb 2020 06:55:39 -0500 by psych0

Thread creation and thread nature

In the last section, I learned the process creation in detail, and learned the difference between fork and vfork through examples. In this section, we will learn how to create threads, which only involve the application layer threads. We will learn how to create kernel threads later. Creation of app ...

Posted on Fri, 14 Feb 2020 05:28:44 -0500 by Charlie9809

Introduction to python setting up proxy and adding image source

Why modify the mirror source? Generally, the python installation library is used, and the pip install xxx instruction or conda install xxx instruction is used. Because pip and conda are the default foreign image sources, they will be in Python's official source, pypi.python.org/pypi Download is very slow. Sometimes it will throw exceptions and ...

Posted on Fri, 14 Feb 2020 01:15:53 -0500 by jkewlo