linux script introduction
ls
#List all files starting with a and o
[root@sh02-hap-bss-prod-consul03 ~]# ls
anaconda-ks.cfg nss-pam-ldapd-0.9.8-1.gf.el7.x86_64.rpm openldap-clients-2.4.44-21.el7_6.x86_64.rpm original-ks.cfg tools
[root@sh02-hap-bss-prod-consul03 ~]# ls [ao]*
anaconda-ks.cfg openldap-clients-2.4.44-21.el7_6.x86_64.rpm original-ks.cfg
#[0-9] for a ...
Posted by hostcord on Thu, 09 Jan 2020 01:33:25 -0800
Learning Notes: docker deploys highly available MySQL clusters
Learning Notes: docker deploys highly available MySQL clusters
Environmental Science
CentOS 7.5 (IP:106.xx.xx.xx)
Docker 18.06.0-ce
1. docker settings
# Define Subnets
docker network create --subnet=172.18.0.0/16 net1
2. mysql Cluster (5)
Using the Percona-XtraDB-Cluster scheme
Connect 106.xx.xx.xx:30001-3000 ...
Posted by jauson on Tue, 07 Jan 2020 09:35:31 -0800
Making run Files from Local Sources
1. Use yum to download the necessary packages in a directory:
yum install --downloaddir ./ --downloadonly nvidia-detect
2. Making script files:
The script file needs unix format (only 0A line breaks, no 0D carriage return) and cannot be in window format.The last must be the end of 0A."Must be"######## End install.sh"before the ...
Posted by sangamon on Mon, 06 Jan 2020 18:09:06 -0800
Use EF to manipulate Mysql instances in Docker
Why would I choose mysql?Because my server configuration is low and the SqlServer instance in the docker, the running memory of the server should be kept at 2G+, I don't have this condition, it will pop out the error sqlservr: This program requires a machine with at least 2000 megabytes of memory. Listen to my friend that even if your machine i ...
Posted by fohanlon on Mon, 06 Jan 2020 03:47:22 -0800
Docker advanced management (docker-compose orchestration tool, consul architecture)
This chapter summarizes the points of knowledge:
Docker Compose container arrangementBuilding an Autodiscover Docker Service ArchitectureImplement container services to automatically join the Nginx cluster
**Docker Compose Container Layout Function**
Docker compose, predecessor of Fig, is a tool for defining and running multiple docker conta ...
Posted by nakago on Fri, 03 Jan 2020 21:52:00 -0800
Docker Containers - Mirror Management, Port Mapping, Container Interconnection
Layer of docker image
_Each instruction in the Dockerfile creates a new mirror layer;_Mirror layers will be cached and reused;_When the instructions of the Dockerfile are modified, the copied file changes, or the variables specified when the image is built are different, the corresponding mirror layer cache will fail;_When the mirror cache of ...
Posted by nadeemshafi9 on Fri, 03 Jan 2020 20:18:01 -0800
Use of Bootstrap tab page switch
Html code:
<!DOCTYPE html>
<html lang="en">
<head>
<base target="_self">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache,must-ridat ...
Posted by jwilliam on Fri, 03 Jan 2020 12:38:42 -0800
Enter the running docker container
When using the docker container, we always want to see what the container looks like inside: we can use the docker exec command to meet our expectations:
➜ compose docker exec --help
Usage: docker exec [OPTIONS] CONTAINER COMMAND [ARG...]
Run a command in a running container
Options:
-d, --detach Detached mode: run comma ...
Posted by ifty on Fri, 03 Jan 2020 08:46:58 -0800
Setting up a docker environment under CentOS7.4
Docker uses timeline as version number after version 1.13, which is divided into community version CE and enterprise version EE.
The community version is free for individual developers and small groups. The enterprise version will provide additional charging services, such as infrastructure, containers, plug-ins, etc. that ...
Posted by DimeDropper on Wed, 01 Jan 2020 01:48:09 -0800
Linux basic learning - Docker learning notes
Docker installation
1 Official website The access speed is very slow, Help document
2 domestic Chinese website,Help document
[root@qdlinux ~]# yum remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotat ...
Posted by mzfp2 on Tue, 31 Dec 2019 06:51:52 -0800