Keepalived 安装

Keepalived 安装
安装环境
  keepalived-1.2.18.tar.gz

  VM虚拟机redhat6.5-x64:192.168.1.201

  Xshell4

部署方案
  201部署

安装步骤
    步骤一:安装依赖openssl-devel
    
    内网RHEL6.5的ISO镜像上传至RHEL6.5服务器上制作本地安装依赖源
    
    参考:https://www.cnblogs.com/icerain0/p/9009660.html
    
    步骤二:解压keepalived-1.2.18.tar.gz
    tar -zxvf keepalived-1.2.18.tar.gz -C /usr/local
    
    步骤三:配置
    mkdir /usr/local/keepalived && cd /usr/local/keepalived-1.2.18 && ./configure --prefix=/usr/local/keepalived
    
    步骤四:编译 安装
    make && make install
    

 步骤五:将Keepalived配置为linux自启动服务
    创建目录
    mkdir /etc/keepalived
    拷贝文件
    cp /usr/local/keepalived/etc/keepalived/keepalived.conf /etc/keepalived/
    cp /usr/local/keepalived/etc/rc.d/init.d/keepalived /etc/init.d/
    cp /usr/local/keepalived/etc/sysconfig/keepalived /etc/sysconfig/
    cp /usr/local/keepalived/sbin/keepalived /usr/sbin
    #添加keepalived到开机启动
    chkconfig keepalived on
    #启动keepalived服务
    service keepalived start [stop restart]
   

posted @ 2018-08-23 18:31  cac2020  阅读(266)  评论(0编辑  收藏  举报