One day introduction to linux detailed explanation of linux operating system foundation
preface
This article also cost me a lot of effort. First of all, I want to make it clear that at least more than 100% of the knowledge points in this article before I write this article are not clear. Moreover, the total number of words after writing this article is no more than 24 hours, with a statistics of more than 27800 words and more tha ...
Added by andreiga on Mon, 13 Dec 2021 01:58:37 +0200
Prometheus service discovery
1, Prometheus deployment
Environmental preparation
hostnamectl set-hostname prometheus
systemctl stop firewalld
systemctl disable firewalld
setenforce 0
vim /etc/resolv.conf
nameserver 114.114.114.114
ntpdate ntp1.aliyun.com #Time synchronization must be done, otherwise there will be problems
Unpack and start service
#Drag the ...
Added by airdee on Sat, 11 Dec 2021 09:58:23 +0200
Linux environment variables and process address space
Linux environment variables and process address space
//View process pid and parent process
[dy@VM-12-10-centos jincheng_12_5]$ ps ajx | head -1 && ps axj | grep 3669470
PPID PID PGID SID TTY TPGID STAT UID TIME COMMAND
3669469 3669470 3669470 3669439 pts/0 3681645 S 1001 0:00 -bash
3669470 3681645 368 ...
Added by perfume on Thu, 09 Dec 2021 15:11:52 +0200
5, Interaction free shell programming
5, Interaction free shell programming
1, Here Document
(1) Here Document overview
Provides a list of commands to interactive programs using I/O redirection An alternative to standard input Here Document is an alternative to standard input, which can help script developers not use temporary files to build input information, but directly ...
Added by michaelphipps on Tue, 07 Dec 2021 10:07:58 +0200
Four installation and deployment methods of database
Database installation
Experimental environment
Redhat8.3
Method 1: use the MySQL repository to install and deploy mysql
1, Add MySQL repository
Add the MySQL Yum repository to the repository list of the system. This is a one-time operation that can be performed by installing the RPM provided by mysql.
Follow these steps:
Go to th ...
Added by Dragoa on Sun, 28 Nov 2021 15:11:38 +0200
Chapter 6 Advanced Shell script programming
4.2.4 while loop
Format:
while COMMANDS; do COMMANDS; done
while CONDITION; do
Circulatory body
done
explain:
CONDITION: cycle control CONDITION; Make a judgment before entering the cycle; Judgment will be made again after each cycle; If the CONDITION is "true", a loop is executed; The loop is terminated until the CONDITION ...
Added by easethan on Sun, 07 Nov 2021 01:01:19 +0200
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