1. Download (version: 2.0.6)
cd/home/install/
wget http://124.205.69.170/files/1255000006EF2AA1/www.keepalived.org/software/keepalived-2.0.6.tar.gz
2. Unzip
TAR-ZXVF keepalived-2.0.6.tar.gz-c/usr/local/
3. Compiling the installation
1) Enter the installation directory
cd/usr/local/keepalived-2.0.6/
2) Installation
./configure--prefix=/usr/local/keepalived
If prompted * * * warning-this build would not be a support IPVS with IPV6. Please install the libnl/libnl-3 dev libraries to the IPv6 with IPVS.
Yum-y Install LIBNL Libnl-devel
If prompted configure:error:libnfnetlink headers missing
Yum Install-y libnfnetlink-devel
re-execute ./configure--prefix=/usr/local/keepalived
No error prompts for next step
Make && make install
To see if the installation was successful
4. Configure boot-up service
Cp/usr/local/keepalived/etc/keepalived/keepalived.conf/etc/keepalived/keepalived.conf
Cp/usr/local/keepalived-2.0.6/keepalived/etc/init.d/keepalived/etc/rc.d/init.d/keepalived
Cp/usr/local/keepalived/etc/sysconfig/keepalived/etc/sysconfig/keepalived
cd/usr/lib/systemd/system/
Start
Systemctl Start keepalived
Boot up
Systemctl Enable Keepalived.service
Check to see if boot starts
Systemctl is-enabled Keepalived.service
Linux CENTOS7 Installation keepalived-2.0.6