一.下载
http://www.keepalived.org
二.安装
1. ./configure (检查,看是否需要安装其他插件,一般缺少 openssl 和 openssl-devel ,如果缺少就安装:yum install -y openssl openssl-devel)
2. make && make install
默认安装的路径
keepalived : /usr/local/sbin/keepalived
conf : /usr/local/etc/keepalived
三.配置文件
四.启动
./keepalived -D -f /usr/local/etc/keepalived/keepalived.conf
监控keepalived的日志
tail -f /var/log/messages
查看当前正在工作的机器
ip a