Dockerfile Use Tutorial
1. What is a Dockerfile
Dockerfile is a description file for creating a custom Docker image. We can write an instruction in the Dockerfile to control what the image needs to do. The instructions in the Dockerfile are detailed below.
2. Four Functional Partitions of Dockerfile
1. Basic Mirroring
Declare the base image for a custom image
F ...
Posted by Andy82 on Fri, 20 Mar 2020 20:46:03 +0100
Ansible ad hoc and common modules
Ansible execution result information - color description; ansible ad hoc description; how to view help documents and common module details
Host planning
Add user account
Explain:
1. Login account used by operation and maintenance personnel;
2. All businesses are placed in the "home directory of yun users" under / app / to avoid m ...
Posted by peteraub on Thu, 19 Mar 2020 11:01:10 +0100
HAproxy load balancing (Health Detection for back end)
Because there is a. spec file in the haproxy package, we can use the rpm command to build the ha rpm package ourselves:
53 yum install rpm-build -y
57 rpmbuild -tb /usr/src/haproxy-1.7.3.tar.gz
58 yum install pcre-devel -y
59 rpmbuild -tb /usr/src/haproxy-1.7.3.tar.gz
60 yum install gcc -y
61 rpmbu ...
Posted by peteraub on Wed, 18 Mar 2020 16:10:26 +0100
CentOS7.X installs Redis-4.0.8 and builds Redis clusters
My personal website
Install redis
Preparation before installation
yum install \
vim \
wget \
make \
gcc \
gcc-c++ \
automake \
autoconf \
-y \
Download, unzip and install
cd /root
wget http://download.redis.io/releases/redis-4.0.8.tar.gz
tar -zxzf redis-4.0.8.tar.gz
cd redis-4.0.8
make PREFIX=/usr/local/redis/ install
Create the data file ...
Posted by chrisv on Tue, 17 Mar 2020 12:24:00 +0100
ceph installation document (Luminous version)
1. Install ntp
We recommend that NTP services (especially Ceph Monitor nodes) be installed on all Ceph nodes to avoid clock drift failures. For details, see Clock.
sudo yum install ntp ntpdate ntp-doc
// yum -y install ntpdate ntp
vim /etc/ntp.conf
server ntp1.aliyun.com iburst
systemctl restart nt ...
Posted by nitroxman on Fri, 06 Mar 2020 12:01:15 +0100
linux entry series 16 -- Samba and NFS of file sharing
The previous article "linux introduction series 15 - vsftp services for file transfer" explained file transfer, and this article continues to explain the knowledge of file sharing.
File sharing is very common in life and work. For example, different members of the same team need to maintain th ...
Posted by Ammar on Mon, 02 Mar 2020 05:31:31 +0100
Deploy ceph cluster
Environmental preparation
Deployment environment
System version: CentOS Linux release 7.4.1708 (Core)
ceph version: ceph 12.2.13 (luminous)
Hardware configuration: 5 VMS, 1 core and 1G memory. Each node role machine should mount at least one free disk for osd
Server role
host name
IP
role
admi ...
Posted by bugz-2849 on Thu, 27 Feb 2020 11:14:42 +0100
jenkins continuous integration tool use-01. Environment installation (centos7)
1. Installation dependency
1.1 install jdk
# View the installable version of jdk
yum -y list java*
# Select the required version to install
yum install -y java-1.8.0-openjdk-devel.x86_64
# View version information
java -version
# View installation location
which java
1.2 install git
# Install git ...
Posted by jofield on Thu, 27 Feb 2020 03:23:12 +0100
Install docker-ce in VM using yum
WeChat Public Number: WELTest
Preconditions
Dependent Software
VM PRO
Link: https://pan.baidu.com/s/1yRUIVKFqDwQyoOk9oJvu7g
Extraction Code: rgl2
Centos7 ISO[CentOS-7-x86_64-Minimal-1611.iso]
Link: https://pan.baidu.com/s/10cgmjK7qtpc3DGCD67YmgA
Extraction Code: fzmr
Xshell
Link: https://pan ...
Posted by copernic67 on Sat, 15 Feb 2020 05:49:42 +0100
Haproxy implements the configuration method of https for some domain names and http for other domain names
Requirement:
1. Haproxy must be at least 1.5 to support ssl certificates2. To use ssl module, openssl software must be installed, and the version should meet the requirements
openssl installation
tar zxf openssl-0.9.8zh.tar.gz
cd openssl-0.9.8zh
./config enable-tlsext --prefix=/usr/local/openssl no-shared
make && make install_sw
#The ...
Posted by cigardude on Thu, 13 Feb 2020 17:28:35 +0100