2.centos7安装keepalived[使用keepalived搭建nginx主备]

专栏目录

  1. keepalived简介[使用keepalived搭建nginx主备]
  2. centos7安装keepalived[使用keepalived搭建nginx主备]
  3. keepalived配置详解[使用keepalived搭建nginx主备]
  4. keepalived守护nginx[使用keepalived搭建nginx主备]
  5. keepalived邮件通知[使用keepalived搭建nginx主备]
  6. keepalived主备配置[使用keepalived搭建nginx主备]

安装keepalived

cd /usr/local/src
wget -c http://www.keepalived.org/software/keepalived-1.4.4.tar.gz
tar -zxvf keepalived-1.4.4.tar.gz
cd keepalived-1.4.4/
./configure --prefix=/usr/local/keepalived
发现异常
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/usr/local/src/keepalived-1.4.4':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
安装gcc
yum install gcc
发现异常
...
checking for pipe2... yes
checking whether ETHERTYPE_IPV6 is declared... yes
checking openssl/ssl.h usability... no
checking openssl/ssl.h presence... no
checking for openssl/ssl.h... no
configure: error: 
  !!! OpenSSL is not properly installed on your system. !!!
  !!! Can not include OpenSSL headers files.            !!!
安装OpenSSL
yum -y install openssl-devel
./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.
安装libnl3
yum search libnl
yum install libnl3-devel.x86_64
./configure --prefix=/usr/local/keepalived
发生异常
configure: error: libnfnetlink headers missing
安装libnfnetlink
yum install -y libnfnetlink-devel
./configure --prefix=/usr/local/keepalived

编译keepalived

make && make install
  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

xianghan收藏册

极简精品作,一分也是一份鼓励哦

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值