[root@centos7-3 keepalived]#modprobe ip_vs[root@centos7-3 keepalived]#ipvsadm-save > /etc/sysconfig/ipvsadm[root@centos7-3 keepalived]#systemctl start ipvsadm.service[root@centos7-3 keepalived]#cp keepalived.conf keepalived.conf.bak[root@centos7-3 keepalived]#vim keepalived.conf
在192.168.1.44和192.168.1.55上分别部署nginx并添加虚拟网卡ip为192.168.1.200/32
keepalived自动把虚拟ip配置在主代理服务器上
、
轮询负载均衡功能正常