zhouu 发表于 2018-12-28 11:47:59

keepalived+haproxy 配置安装

  1 环境介绍
1.1 keepalived的主从
master: 10.50.85.26
slave: 10.50.85.56
1.2 keepavlied的VIP和端口
10.50.85.200:10051
注意:keepavlied的VIP必须是和mater和slave是同一网段的
1.3 代理的两台主机的10050端口
10.50.85.26:10050
10.50.85.56:10050
2 在两台主机上分别按照haproxy和keeepalived
yum -y install keepalived haproxy
2.1 在mster上配置keepalive的和haproxy
2.1.1 keepalived配置
keepalived的配置文件路径:/etc/keepalived/
注意:不使用默认配置
vim /etc/keepalived/keepalived.conf
global_defs {
notification_email {admin@centos.bzbr/>admin@centos.bz
页: [1]
查看完整版本: keepalived+haproxy 配置安装