美文网首页
Keepalied安装

Keepalied安装

作者: 羁绊_87cd | 来源:发表于2020-06-09 08:50 被阅读0次

    安装

    wget https://www.keepalived.org/software/keepalived-2.0.20.tar.gz
    tar -zxvf keepalived-2.0.20.tar.gz
    cd keepalived-2.0.20
    ./configure \
    --prefix=/usr/local/keepalived \
    --sysconf=/etc
    make && make install
    
    • prefix: keepalived安装位置
    • sysconf: keepalived核心配置文件所在位置,固定位置,改成其他规则位置keepalived启动不了,中会报错。

    配置过程中可能会出现警告信息,如下所示:

    *** 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: error: libnfnetlink headers missing
    安装libnfnetlink
    yum install -y libnfnetlink-devel
    重新configure一下,此时OK。

    相关文章

      网友评论

          本文标题:Keepalied安装

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