美文网首页
CentOS7 安装 keepalived

CentOS7 安装 keepalived

作者: snoopy_fly_ | 来源:发表于2020-07-11 11:35 被阅读0次
  1. 下载地址:点我下载
  2. 解压
tar -zxvf keepalived-2.0.18.tar.gz
  1. 解压后进入到解压出来的目录,看到会有 configure,那么就可以做配置了(配置安装和 nginx 一模一样)


    image.png
  2. 使用 configure 命令配置安装目录与核心配置文件所在位置:
./configure --prefix=/usr/local/keepalived --sysconf=/etc
  • prefix:keepalived 安装的位置
  • sysconf:keepalived 核心配置文件所在位置,固定位置,改成其他位置则 keepalived 启动不了,/var/log/messages 中会报错
    4.1 配置过程中可能会出现警告信息,如下所示:
    *** WARNING - this build will not support IPVS with IPv6. Please install libnl/libnl-3 dev libraries to support IPv6 with IPVS.
    4.2 安装libnl/libnl-3依赖
    yum -y install libnl libnl-devel
    4.3 重新 configure 一下,此时 OK
    ./configure --prefix=/usr/local/keepalived --sysconf=/etc
  1. 安装 keepalived
make && make install
  1. 进入到 /etc/keepalived,该目录下为 keepalived 核心配置文件


    image.png
  2. 如果忘记安装配置的目录,则通过如下命令找到:


    image.png

相关文章

  • centos7使用keepalived和mysql配置mysql

    1.keepalived安装 参考centos7下keepalived1.4.0安装启动卸载章节:https://...

  • centos7安装keepalived

    1.下载keepalived 进入keepalived官网下载界面,选择你所需要的版本下载即可 点击Version...

  • CentOS7安装Keepalived

    首先我要声明,虽然有的服务器不能连外网!但是最好不要离线安装、最好不要、最好不要、最好不要,重要的事情说三遍,很多...

  • CentOS7 安装 keepalived

    下载地址:点我下载 解压 解压后进入到解压出来的目录,看到会有 configure,那么就可以做配置了(配置安装和...

  • Keepalived实践

    Keepalived安装 配置Keepalived 验证

  • keepalived

    1:keepalived安装 keepalived安装教程 注:脚本需要设置为相关权限

  • LVS+KeepAlived+Nginx高可用实现方案 转自CS

    文章目录 概念 LVS KeepAlived 为什么要使用 准备 软件安装 KeepAlived 安装 源码安装 ...

  • KeepAlived 部署

    安装:KeepAlived 查看IPVS模块是否已经编译到内核中 安装keepalived的依赖组件安装依赖组件 ...

  • CentOS7源码安装keepalived

    1、访问https://www.keepalived.org/download.html,下载最新版的keepal...

  • Keepalied安装

    安装 prefix: keepalived安装位置 sysconf: keepalived核心配置文件所在位置,固...

网友评论

      本文标题:CentOS7 安装 keepalived

      本文链接:https://www.haomeiwen.com/subject/apnbcktx.html