Keepalived的官网地址:http://www.keepalived.org。我下载的版本:keepalived-1.2.7.tar.gz

#tar zxvf keepalived-1.2.7

#cd keepalived-1.2.7

#./configure –sysconf=/etc –with-kernel-dir=/usr/src/kernels/2.6.18-128.el5-i686亚麻籽油孕婴专用油

若/usr/src/kernel目录下没有内核目录,则需要安装内核开发包.

  • #find / -name keepalived  # 查看keepalived位置               

  •    

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

  • #cp /usr/local/etc/sysconfig/keepalived /etc/sysconfig/

  • #mkdir /etc/keepalived

  • #cp /usr/local/etc/keepalived/keepalived.conf /etc/keepalived/

  • #cp /usr/local/sbin/keepalived /usr/sbin/

  • #service keepalived start|stop     #做成系统启动服务方便管理.

       Keepalived安装