安装LVS+keepalived遇到的问题


安装lvs,参考http://www.cnblogs.com/taosim/articles/2866845.html遇到如下问题:


1.linux配置ipvsadm, /usr/src/kernels中无内核文件,经网上搜索是因为缺少kernel-devel这个包导致的,安装完成,问题解决。
[root@LB59_backup kernels]# yum -y install kernel-devel

2.[root@test keepalived-1.1.18]# ./configure --prefix=/usr/local/keepalived

configure: error:

!!! OpenSSL is not properly installed on your system. !!!

!!! Can not include OpenSSL headers files. !!!

经过搜索找到解决方法:

[root@master ~]# yum -y install openssl-devel
编译的时候出现这个提示,说明keepalived和内核结合了,如果不是这样的,需要加上这个参数./configure --with-kernel-dir=/kernel/path

Keepalived configuration(出现这个)

------------------------

Keepalived version : 1.1.18

Compiler : gcc

Compiler flags : -g -O2

Extra Lib : -lpopt -lssl -lcrypto

Use IPVS Framework : Yes

IPVS sync daemon support : Yes

Use VRRP Framework : Yes

Use Debug flags : No

3.配置keepalived

[root@test ]# cp /usr/local/keepalived/etc/rc.d/init.d/keepalived /etc/rc.d/init.d/

[root@test ]# cp /usr/local/keepalived/etc/sysconfig/keepalived /etc/sysconfig/

[root@test ]# mkdir /etc/keepalived

[root@test ]# cp /usr/local/keepalived/etc/keepalived/keepalived.conf /etc/keepalived/

[root@test ]# cp /usr/local/keepalived/sbin/keepalived /usr/sbin

然后启动:

[root@test keepalived-1.1.18]# service keepalived start

Starting keepalived: [ OK ]

4.



你可能感兴趣的:(LVS+keepalived)