Bootstrap

离线安装keepalived

1.1、安装popt

解压压缩文件
# tar -zxvf popt_1.18.orig.tar.gz
进入目录
# cd popt-1.18/
离线安装
# ./configure
# make && make install 

1.2、安装daemon-0.6.4.tar

解压压缩文件
# tar -zxvf daemon-0.6.4.tar.gz
# cd daemon-0.6.4
# ./configure
# make && make install	

2.下载keepalived安装包

官网下载:https://www.keepalived.org/download.html

3.上传到服务器并解压keepalived安装包

4.安装,默认安装到/etc/keepalived

cd keepalived
./configure --prefix=/usr/local/keepalived
make && make install

5.注册为系统服务

复制代码

cd keepalived/etc


cp init.d/keepalived /etc/init.d/

cp sysconfig/keepalived /etc/sysconfig/

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

mkdir /etc/keepalived
cp keepalived-2.0.19/keepalived/etc/keepalived/keepalived.conf /etc/keepalived

systemctl daemon-reload

systemctl start keepalived.service

在这里插入图片描述

;