keepalived 安装

1、清除LVS的安装 并安装所需库

yum install -y kernel-develipvsadm openssl* pop*


2、编译安装

wget http://www.keepalived.org/software/keepalived-1.2.13.tar.gz 

./configure --prefix=/usr/local/keepalived

make 

make install

cp /usr/local/keepalived/sbin/keepalived /usr/sbin/

cp /usr/local/keepalived/etc/sysconfig/keepalived /etc/sysconfig/

cp /usr/local/keepalived/etc/rc.d/init.d/keepalived /etc/init.d/

mkdir /etc/keepalived

cd /etc/keepalive

cp /usr/local/keepalived/etc/keepalived/keepalived.conf ./


3、将keepalived添加到开机启动服务中,并进行测试

chkconfig keepalived on

chkconfig --list | grep keepalived

service keepalived restart


你可能感兴趣的:(local)