在CentOS上可以通过yum直接安装Keepalvied
yum install keepalived
这里我们使用源码安装Keepalvied
wget http://www.keepalived.org/software/keepalived-1.2.15.tar.gz
tar zxvf keepalived-1.2.15.tar.gz
源码安装任何一个软件都要养成查看源码包文档的习惯,比如INSTALL,README,doc等文档,可以获得很多有用的信息
安装Keepalived前需要安装popt和openssl
yum -y install popt openssl openssl-devel
mkdir -p /data/app_platform/keepalived/
cd keepalived-1.2.15
./configure --prefix=/data/app_platform/keepalived/
make
make install
mkdir -p /data/app_platform/keepalived/conf
参考文档:
http://www.keepalived.org/download.html
时间: 2024-10-16 18:21:28