KeepAlived离线部署日记

阅读更多

1、安装ipvs

进入/opt/software/Packages/

rpm -ivh libnl-1.1.4-2.e16.x86_64.rpm

rpm -ivh libnl-devel-1.1.4-2.e16.x86_64.rpm

rpm -ivh libnfnetlink-1.0.0-1.e16.x86_64.rpm

rpm -ivh ipvsadm-1.26-4.e16.x86_64.rpm

 

2、安装keepalived依赖

2.1 libnfnetlink-devel-1.0.0-1.el6.x86_64.rpm

    进入/opt/software

    rpm -ivh libnfnetlink-devel-1.0.0-1.el6.x86_64.rpm

 

2.2 安装nmap

    进入/opt/software/Packages

    rpm -ivh libpcap-1.4.0-4.20130826git2dbcaa1.e16.x86_64.rpm

    rpm -ivh nmap-5.51-4.e16.x86_64.rpm

 

3、安装keepalived

   进入/opt/software/

   找到keepalived-1.2.16.tar.gz

   解压至当前目录  tar -zxvf keepalived-1.2.16.tar.gz

   进入该目录  cd keepalived-1.2.16

   输入安装命令:

./configure --prefix=/usr/common/keepalived

make

make install

 

 

4、拷贝配置文件

  4.1 确认shell脚本是否存在以及可执行

    /opt/shell/checkNginx.sh

 

  4.2 确认keepalived相关配置是否存在

    配置文件位置 /opt/conf/keepalived.conf

 

  4.3 启动keepalived

   /usr/common/keepalived/sbin/keepalived -f /opt/conf/keepalived.conf

 

你可能感兴趣的:(KeepAlived离线部署日记)