keepalived安装部署

目录

  • 下载地址
  • 通过ftp工具上传到linux中
  • 解压
  • 进入到解压出来的目录,看到configure,进行配置
  • 可能出现的错误
  • 安装keepalived

下载地址

点我下载

通过ftp工具上传到linux中

keepalived安装部署_第1张图片

解压

tar -zxvf keepalived-2.0.18.tar.gz

进入到解压出来的目录,看到configure,进行配置

./configure --prefix=/usr/local/keepalived --sysconf=/etc
  • prefix:keepalived安装的位置
  • sysconf:keepalived核心配置文件所在位置,固定位置,改成其他位置则keepalived启动不了,/var/log/messages中会报错

可能出现的错误

  • 配置过程中可能会出现警告信息,如下所示
*** WARNING - this build will not support IPVS with IPv6. 
Please install libnl/libnl-3 dev libraries to support IPv6 with IPVS.
  • 解决方法:
    安装libnl/libnl-3依赖
yum -y install libnl libnl-devel

重新configure一下,此时OK。

安装keepalived

make && make install

如忘记keepalived安装目录,可通过如下命令查找

whereis keepalived

你可能感兴趣的:(Keepalived)