微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐