keepalived安装

一、centos上yum安装

yum install keepalived -y

二、源码安装

1. 安装依赖包

yum install curl gcc openssl-devel libnl3-devel net-snmp-devel

2. 下载版本

http://www.keepalived.org/download.html

3. 下载解压安装

curl --progress http://keepalived.org/software/keepalived-1.2.15.tar.gz | tar xz
cd keepalived-1.2.15
./configure --prefix=/usr/local/keepalived --enable-snmp
make
sudo make install

4. 配置启动脚本

ln -s /etc/rc.d/init.d/keepalived.init /etc/rc.d/rc3.d/S99keepalived

三、官方文档:

http://www.keepalived.org/doc/installing_keepalived.html

Previous Post

keepalived架构

Next Post

keepalived配置文件详解

Related Posts