安装keepalived

Posted ygtdxy

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了安装keepalived相关的知识,希望对你有一定的参考价值。

wget http://www.keepalived.org/software/keepalived-1.2.17.tar.gz

tar -xvf keepalived-1.2.17.tar.gz

 

cd keepalived-1.2.17

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

make && make install

 

cp /usr/local/keepalived/sbin/keepalived /usr/sbin  

cp /usr/local/keepalived/etc/sysconfig/keepalived /etc/sysconfig  

cp /usr/local/keepalived/etc/rc.d/init.d/keepalived  /etc/init.d/  

 

修改系统配置:

vi /etc/sysconfig/keepalived

KEEPALIVED_OPTIONS = "-D -d -S 0 -f /usr/local/keepalived/etc/keepalived/keepalived.conf"         #指定配置文件路径,-d -S 选项打开调试日志

以上是关于安装keepalived的主要内容,如果未能解决你的问题,请参考以下文章

keepalived lvs

Keepalived+LVS DR

heartbeat与keepalived对比

Keepalived + LVS DR 配置 终版

Keepalived 的使用

nginx+keepalived 部署web高可用