最近需要部署keepalived+ssdb的HA环境,记录一下安装配置的步骤。
系统版本:CentOS6.7
keepalived的安装
1.从官网下载keepalived 1.3.2 source code。
http://www.keepalived.org/software/keepalived-1.3.2.tar.gz
2.解压并安装。
tar -xvf keepalived-1.3.2.tar.gz
cd keepalived-1.3.2
./configure --prefix=/usr/local/keepalived --sysconfdir=/etc/keepalived --with-kernel-dir=/usr/src/kernels/2.6.32-279.el6.x86_64
configure过程中,报没有指定的kernel的错误,检查指定kernel目录,发现没有相关文件。执行如下命令后,再编译安装问题解决。
yum -y install kernel-devel kernel-headers gcc*
make && make install
完成安装。
时间: 2024-10-02 18:41:57