一.下載
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
監(jiān)控keepalived的日志
tail -f /var/log/messages
查看當前正在工作的機器
ip a