【安装文档】keepalived1.2.7安装步骤

简介

Keepalived的作用是检测服务器的状态,如果有一台web服务器宕机,或工作出现故障,Keepalived将检测到,并将有故障的服务器从系统中剔除,同时使用其他服务器代替该服务器的工作,当服务器工作正常后Keepalived自动将服务器加入到服务器群中,这些工作全部自动完成,不需要人工干涉,需要人工做的只是修复故障的服务器。

本文将以两台服务器来详细讲述keepalived主从服务的安装过程。

keepalived安装

[root@bogon local]# tar -zxvf keepalived-1.2.7.tar.gz 
[root@bogon local]# cd keepalived-1.2.7
[root@bogon keepalived-1.2.7]# yum -y install ipvsadm
... ...                                                                                   
Complete!
[root@bogon keepalived-1.2.7]# ./configure 
Keepalived configuration
------------------------
Keepalived version       : 1.2.7
Compiler                 : gcc
Compiler flags           : -g -O2
Extra Lib                : -lpopt -lssl -lcrypto 
Use IPVS Framework       : Yes
IPVS sync daemon support : Yes
IPVS use libnl           : No
Use VRRP Framework       : Yes
Use VRRP VMAC            : Yes
SNMP support             : No
Use Debug flags          : No
[root@bogon keepalived-1.2.7]# make
Make complete
[root@bogon keepalived-1.2.7]# make install
[root@bogon keepalived-1.2.7]#