码迷,mamicode.com
首页 > 系统相关 > 详细

Linux centos7 安装 keepalived-2.0.6

时间:2018-08-27 18:09:51      阅读:2434      评论:0      收藏:0      [点我收藏+]

标签:prefix   linux c   ***   image   执行   分享   alived   uil   software   

 

1.下载(版本: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.解压

  tar -zxvf keepalived-2.0.6.tar.gz -C /usr/local/

  技术分享图片

3.编译安装

  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

  技术分享图片

  查看是否安装成功

  技术分享图片

 

4.配置开机启动服务

  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

(1)
(1)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!