标签:prefix linux c *** image 执行 分享 alived uil software
cd /home/install/
wget http://124.205.69.170/files/1255000006EF2AA1/www.keepalived.org/software/keepalived-2.0.6.tar.gz
tar -zxvf keepalived-2.0.6.tar.gz -C /usr/local/
1)进入安装目录
cd /usr/local/keepalived-2.0.6/
2)安装
./configure --prefix=/usr/local/keepalived
如果提示 *** WARNING - this build will not support IPVS with IPv6. Please install libnl/libnl-3 dev libraries to support IPv6 with IPVS.
yum -y install libnl libnl-devel
如果提示 configure: error: libnfnetlink headers missing
yum install -y libnfnetlink-devel
再执行 ./configure --prefix=/usr/local/keepalived
无错误提示进行下步
make && make install
查看是否安装成功
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/
启动
systemctl start keepalived
开机启动
systemctl enable keepalived.service
查看是否开机启动
systemctl is-enabled keepalived.service
Linux centos7 安装 keepalived-2.0.6
标签:prefix linux c *** image 执行 分享 alived uil software
原文地址:https://www.cnblogs.com/zwcry/p/9542867.html