- 下载地址:
https://www.keepalived.org/download.html
- 通过ftp工具上传到linux中,/home/software
- 解压
tar -zxvf keepalived-2.0.18.tar.gz
- 解压后进入到解压出来的目录,看到会有 configure ,那么就可以做配置了(配置安装和nginx一模一样)
#--prefix 安装位置
#--sysconf 配置文件位置,固定位置,改成其他位置启动不了
./configure --prefix=/usr/local/keepalived --sysconf=/etc
4.1 配置过程中出现如下警告
*** WARNING - this build will not support IPVS with IPv6. Please install libnl/libnl-3 dev libraries to support IPv6 with IPVS.
4.2 安装 libnl
yum -y install libnl libnl-devel
4.3 重新./configure
5.安装keepalived
make && make install
7.如果忘记配置安装位置
whereis keepalived