#lvs + keepalived 安装指南
##1. lvs安装
yum install ipvsadm
##2. keepalived安装
wget
tar -zxvf keepalived-1.2.24.tar.gz cd keepalived-1.2.15 ./configure --sysconf=/etc/ make && make install ln -s /usr/local/sbin/keepalived /sbin/ 这一步很重要,不执行ln -s会报错“Starting keepalived: /bin/bash: keepalived: command not found”service keepalived start //启动服务
service keepalived stop //关闭服务
或 yum install keepalived