Build docker swarm cluster to realize load balancing
About Swarm:
Swarm is a cluster management tool officially provided by Docker. Its main function is to abstract several Docker hosts as a whole, and manage all kinds of Docker resources on these Docker hosts through a single portal.
Swarm and kubernetes are similar, but lighter, and have fewer functions than kubernetes
Experime ...
Posted by majiclab on Thu, 05 Dec 2019 00:13:00 -0800
docker private warehouse Harbor
I. download and installation of relevant software
#Docker installation
wget -O /etc/yum.repos.d/docker-ce.repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
y ...
Posted by jerdo on Tue, 03 Dec 2019 02:07:06 -0800
Notes on Centos6.5 installing MySQL 5.6
CentOS Six.Five install MySQL 5.6
1. View system status
[root@itzhouq Three 2 tools]# cat /etc/issue
CentOS release 6.5 (Final)
Kernel \r on an \m
[root@itzhouq32 tools]# uname -a
Linux itzhouq32 2.6.32-Four 31.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
2. Create a directory to download rpm package
[root@itz ...
Posted by lyealain on Mon, 02 Dec 2019 14:05:54 -0800
Install Python 3.7.1 under CentOS 7
Currently, Python 2 is installed by default in the latest CentOS 7.3, and Python 3 installation package is not provided in the default official yum source. Recently, we need to install awscli on the machine. We need python2.6.5 + or python3.3 +. I install python3 through source compilation.My machine version:
cat /etc/redhat-release
#CentOS Lin ...
Posted by vierme on Mon, 02 Dec 2019 13:17:24 -0800
Set up the server login and logout remote server from scratch
During the period of double 11, we started a cloud server, which took a week or two for filing, and finally passed the filing. So we installed Docker containers on the personal server for deployment projects, and prepared to pack all services into containers as much as possible, so as to facilitate unified management and operation and maintenan ...
Posted by kikidonc on Mon, 02 Dec 2019 03:31:57 -0800
Configure Apache virtual host
Experimental environment
A CentOS 7.3 virtual machine with minimal installation
Configure the base environment
1. Install apache
yum install -y httpd
2. Establish the root directory of the virtual host
mkdir /var/wwwroot
mkdir /var/wwwroot/site1
mkdir /var/wwwroot/site2
echo -e "site1" >> /var/wwwroot/site1/index.html
echo -e "site2" &g ...
Posted by m3mn0n on Sun, 01 Dec 2019 05:24:04 -0800
Network virtualization
Network virtualization technologyOpenVSwitch: virtual switchVLAN, VXLANVirtual router
What is VLAN?Virtual LAN: LAN refers to the range from broadcast frame to node, that is, the range of direct communication;
VLAN: MAC address basedPort implementation based on switchImplementation based on IP addressUser based implementation
Type of switch in ...
Posted by NathanLedet on Sat, 30 Nov 2019 21:00:43 -0800
CentOS 7 deploy MySQL 5.7 (master-slave replication, traditional mode and GTID)
Record (≫); 1. Copy binary files and locations; 2. Master-slave copy based on GTID: (test environment is CentOS 7.3)
I. based on binary log file (traditional way)
(1) working principle:
1. Master records the database operation to Binary log and sends it to Slave I/O thread;
2. Slave's I/O thread stores the received Binary log to the local Rela ...
Posted by zgkhoo on Sat, 30 Nov 2019 08:01:39 -0800
[Flume] - collect Log4j log and send it to Kafka
Flume collects Log4j logs and sends them to Kafka for storage
Environmental preparation
Download Flume: http://flume.apache.org/
Install: extract the download package to the custom path
Configure agent
# Function: filter json information storage kafka
agent.sources = s1
agent.channels = c1
agent.sinks = k1
agent.sources.s1.type = avro
agen ...
Posted by mirana on Fri, 29 Nov 2019 12:57:00 -0800
Upgrading python2.6.6 to python2.7 makes pip command unavailable
The server environment is CentOS 6.8, and Python is the default version 2.6.6
1. Upgrade python
Upgrade python2.6.6 to python2.7.14, which will not be described herePlease refer to the following documents for upgrading:https://blog.csdn.net/see_you_see_me/article/details/78550977
2.Python makes pip command unavailable
Upgrading Python 2.7 resu ...
Posted by scottchr226 on Fri, 29 Nov 2019 10:06:26 -0800