How to build a Web cluster using Haproxy
Common Web Cluster Schedulers
At present, the common Web cluster scheduler is divided into software and hardware. Software usually uses open source LVS, Haproxy, Nginx. Hardware usually uses F5 more. Many people also use some domestic products, such as pike, green league, and so on.
Haproxy application analysis
LVS has a strong anti-load capab ...
Posted by Niel Roos on Tue, 10 Dec 2019 09:25:56 -0800
MySQL compile free installation and login (5.6.36)
1. Download MySQL 5.6.36 compile free installation package and upload it to / usr/local/src directory (you can also use wget command to download it directly to this directory)
Download address https://yunpan.360.cn/surl_ymCGfFYt2Ya
2. Decompression
[root@JSH-01 src]# tar zxvf mysql-5.6.36-linux-glibc2.5-x86_64.tar.gz
3. Move the extracted file ...
Posted by MannX on Tue, 10 Dec 2019 05:32:20 -0800
A comparative analysis of golang socket and Linux socket
After posix standard was introduced, socket has been well supported on all major OS platforms. Golang is a cross platform programming language with runtime. The socket API provided to developers in Go is based on the native socket interface of the operating system. But the behavior of socket interface in golang is different from that of native ...
Posted by art15 on Mon, 09 Dec 2019 18:41:31 -0800
Django development environment preparation
Environmental installation
Foreplay
Basic knowledge needed:
Network configuration: Reference resources
Share path: Reference resources
Required software & Image
VirtualBox: the best free virtual machine software
The download address is as follows (install the software suitable for your own operating system):
https://www.virtualbox.org/w ...
Posted by omanush on Mon, 09 Dec 2019 15:55:55 -0800
Firewalld sharing Internet and building local yum warehouse
1.firewalld sharing Internet
1. Server operation (server with external network)
1. Turn on the firewall and join the startup
[root@zeq ~]# systemctl start firewalld
[root@zeq ~]# systemctl enable firewalld
2. Remove the rule that the default owner can access ssh
[root@zeq ~]# firewall-cmd --remove-service=ssh --permanent
3. Add only allow 10.0. ...
Posted by Jaehoon on Mon, 09 Dec 2019 14:22:34 -0800
Building a load balancing cluster based on direct routing mode (DR)
For the working principle and overview of LVS load balancing, please visit: LVS load balancing cluster of Centos 7
For detailed configuration of load balancing cluster in address translation (NAT) mode, please visit: Building load balancing cluster based on address translation (LVS-NAT) mode
I. start to configure DR mode LVS
preparation:Four C ...
Posted by thomasgrant on Mon, 09 Dec 2019 10:17:07 -0800
docker practice ks8 installation and deployment
Deployment architecture:
I. installing docker
Only docker18.06 is supported at this time
1.1. Add source:
# yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
1.2. View package:
# yum list docker-ce.x86_64 --showduplicates | sort -r
1.3. Install docker
# yum -y install docker-ce-18.06.0.ce-3.el7
Th ...
Posted by jds580s on Mon, 09 Dec 2019 07:48:49 -0800
002. NFS architecture of kickstart deployment
One preparation
1.1 complete architecture: Kickstart+DHCP+NFS+TFTP+PXE
1.2 component application
Kickstart server IP: 172.24.8.12
DHCP: provide client IP, gateway, image path, etc;
TFTP: sharing pxelinux.0, initrd.img, vmlinux, isolinux.cfg, boot.msg, vesemanu.c32, splash.png files
NFS: share ks.cfg and all CD files
Note: this ks.cfg file and a ...
Posted by jackson4me90 on Mon, 09 Dec 2019 06:58:04 -0800
Build the host Nginx + Docker WordPress Mysql
Environmental Science
Linux 3.10.0-693.el7.x86_64
Docker version 18.09.0
docker-compose version 1.17.0
install
Required dependencies for installing docker
$ sudo yum install -y yum-utils device-mapper-persistent-data lvm2
Install docker CE
$ sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
$ s ...
Posted by thenewguy on Mon, 09 Dec 2019 06:21:46 -0800
Nginx+Tomcat load balancing cluster + reverse agent
Experimental environment
Nginx server (192.168.13.177)
Tomcat1 server (192.168.13.151)
Tomcat2 server (192.168.13.178)
client tester
I. load balancing
1. Install Tomcat service on Tomcat1 and Tomcat2
[root@tomcat1 ~]# systemctl stop firewalld.service ##Turn off firewall
[root@tomcat1 ~]# mkdir /abc
[root@tomcat1 ~]# mount.cifs //192.168.100.3 ...
Posted by lily on Sun, 08 Dec 2019 15:05:40 -0800