主上Master配置
[root@martin001 ~]# yum install -y keepalived
iptables -nvL 查看防火墙
主从Backup配置
[root@martin002 ~]# yum install -y keepalived
[root@martin002 ~]# service nginx start
Redirecting to /bin/systemctl start nginx.service
Failed to start nginx.service: Unit not found.
[root@martin002 ~]# yum install -y nginx
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
18.1 集群介绍 18.2 keepalived介绍 18.3/18.4/18.5 用keepal
原文地址:http://blog.51cto.com/12058686/2096744