CI / CD Manual (c) under the traditional cloud environment configuration and keepalived haproxy

Yum ready source
cd /etc/yum.repos.d/
RM -rf *
wget http://mirrors.aliyun.com/repo/Centos-7.repo
wget http://mirrors.163.com/.help/CentOS7 163.repo-the -base
wget http://mirrors.aliyun.com/repo/epel-7.repo

Configuring keepalived
yum the install keepalived -Y
Vim /etc/keepalived/keepalived.conf
vrrp_instance VI_1 {
State is the MASTER # another server SLAVE
interface ens33 # default eth0, must modify
virtual_router_id 51 is
priority # 100 to another server priority below 100
advert_int. 1
authentication {
AUTH_TYPE the PASS
AUTH_PASS 1111
}
virtual_ipaddress {
192.168.1.19
}
}

Guess you like

Origin blog.51cto.com/dongdong/2423118