设为首页收藏本站

LinuxTone | 运维专家网论坛 - 最棒的Linux运维与开源架构技术交流社区!

 找回密码
 注册

用新浪微博连接

一步搞定

QQ登录

只需一步,快速开始

楼主: NetSeek

[keepalived] 利用LVS+Keepalived 实现高性能高可用负载均衡服务器   [复制链接]

Rank: 6Rank: 6

注册时间
2009-5-4
最后登录
2012-2-7
在线时间
52 小时
阅读权限
70
积分
1966
帖子
235
主题
9
精华
0
UID
2847
发表于 2010-8-3 20:58:45 |显示全部楼层
不知道这个可以做其他的集群吗,不是WEB方面的

使用道具 举报

Rank: 7Rank: 7Rank: 7

注册时间
2009-4-1
最后登录
2011-12-23
在线时间
51 小时
阅读权限
100
积分
375
帖子
55
主题
14
精华
0
UID
2266
发表于 2010-8-7 19:04:05 |显示全部楼层
马克一下。

使用道具 举报

Rank: 3Rank: 3

注册时间
2010-8-29
最后登录
2011-7-1
在线时间
60 小时
阅读权限
30
积分
396
帖子
34
主题
1
精华
0
UID
10225
发表于 2010-8-29 15:22:19 |显示全部楼层
回复 136# world7th


    可以,看到后面的端口号了吗,对不同的服务,使用相应的端口就可以了!

使用道具 举报

Rank: 3Rank: 3

注册时间
2010-8-29
最后登录
2011-7-1
在线时间
60 小时
阅读权限
30
积分
396
帖子
34
主题
1
精华
0
UID
10225
发表于 2010-8-29 15:22:52 |显示全部楼层
谢谢分享,不错的文章

使用道具 举报

Rank: 2

注册时间
2010-8-24
最后登录
2011-3-18
在线时间
16 小时
阅读权限
20
积分
127
帖子
20
主题
7
精华
0
UID
10198
发表于 2010-9-3 15:33:25 |显示全部楼层
good 以前配过,现在基本忘了,熟悉一下

使用道具 举报

Rank: 6Rank: 6

注册时间
2010-8-4
最后登录
2012-2-7
在线时间
15 小时
阅读权限
70
积分
1903
帖子
11
主题
0
精华
0
UID
10004
发表于 2010-9-3 18:14:54 |显示全部楼层
顶一个。。。

使用道具 举报

Rank: 1

注册时间
2010-8-25
最后登录
2011-7-26
在线时间
2 小时
阅读权限
10
积分
23
帖子
3
主题
0
精华
0
UID
10208
发表于 2010-9-3 19:38:08 |显示全部楼层
谢谢分享线上的资料

使用道具 举报

Rank: 1

注册时间
2010-9-14
最后登录
2010-10-12
在线时间
2 小时
阅读权限
10
积分
6
帖子
1
主题
0
精华
0
UID
10380
发表于 2010-9-14 13:48:53 |显示全部楼层
这个帖,LZ现在还回复吗?有点问题想问

使用道具 举报

Rank: 1

注册时间
2010-9-18
最后登录
2010-9-20
在线时间
0 小时
阅读权限
10
积分
17
帖子
3
主题
1
精华
0
UID
10413
发表于 2010-9-20 15:33:35 |显示全部楼层
谢谢分享,正要看。呵

使用道具 举报

Rank: 1

注册时间
2010-9-26
最后登录
2010-9-26
在线时间
1 小时
阅读权限
10
积分
19
帖子
4
主题
0
精华
0
UID
10481
发表于 2010-9-26 15:02:26 |显示全部楼层
LZ  你好,附件已被我拿走。感谢分享。

使用道具 举报

Rank: 8Rank: 8

注册时间
2010-8-19
最后登录
2012-2-6
在线时间
379 小时
阅读权限
90
积分
5258
帖子
184
主题
9
精华
0
UID
10152
发表于 2010-9-29 15:11:20 |显示全部楼层
我很喜欢楼主这样的人

使用道具 举报

Rank: 1

注册时间
2009-7-23
最后登录
2010-10-11
在线时间
1 小时
阅读权限
10
积分
9
帖子
2
主题
0
精华
0
UID
4375
发表于 2010-10-12 00:00:54 |显示全部楼层
word文档做的更精美,lz辛苦。致敬!

使用道具 举报

Rank: 8Rank: 8

注册时间
2010-10-13
最后登录
2012-2-3
在线时间
42 小时
阅读权限
90
积分
3951
帖子
135
主题
10
精华
0
UID
10612
发表于 2010-10-13 17:29:04 |显示全部楼层
新手报道,,学到不了东西,,爱S你们呢,

使用道具 举报

Rank: 3Rank: 3

注册时间
2010-6-6
最后登录
2012-2-4
在线时间
10 小时
阅读权限
30
积分
459
帖子
10
主题
1
精华
0
UID
9457
发表于 2010-10-26 09:00:31 |显示全部楼层
这个详细。呵呵

使用道具 举报

Rank: 3Rank: 3

注册时间
2009-6-23
最后登录
2011-12-23
在线时间
37 小时
阅读权限
30
积分
479
帖子
93
主题
22
精华
0
UID
3771
发表于 2010-10-26 09:19:07 |显示全部楼层
本帖最后由 cfanbo 于 2010-10-26 10:13 编辑

系统安装的时候什么包也没有选中的,全部为后来手动安装的.
#lsmod |grep ip_vs
这个是做什么的,执行上面的命令没有任何输出的.我的内核是2.6.18-194.17.1.el5, 安装的时候出现错误,是不是ip_vs没有这个模块的?
#ln -s /usr/src/kernels/2.6.18-53.el5PAE-i686/  /usr/src/linux
也执行了上面的命令的,已经换成了我的版本的,也成功建立了链接.
但在make ipvsadm的时候,出现错误:


============================================


[root@centos src]# cd ipvsadm-1.24
[root@centos ipvsadm-1.24]# make
make -C libipvs
make[1]: Entering directory `/usr/src/ipvsadm-1.24/libipvs'
gcc -Wall -Wunused -Wstrict-prototypes -g -O2 -I/usr/src/linux/include  -DHAVE_NET_IP_VS_H -c -o libipvs.o libipvs.c
In file included from libipvs.c:23:
libipvs.h:14:23: error: net/ip_vs.h: No such file or directory
In file included from libipvs.c:23:
libipvs.h:119: error: expected ‘)’ before ‘fwmark’
libipvs.c:27: error: field ‘svc’ has incomplete type
libipvs.c:28: error: field ‘dest’ has incomplete type
libipvs.c: In function ‘ipvs_init’:
libipvs.c:40: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_vs_getinfo’
libipvs.c:44: error: ‘IP_VS_SO_GET_INFO’ undeclared (first use in this function)
libipvs.c:44: error: (Each undeclared identifier is reported only once
libipvs.c:44: error: for each function it appears in.)
libipvs.c: In function ‘ipvs_getinfo’:
libipvs.c:56: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_vs_getinfo’
libipvs.c:57: error: ‘IP_VS_SO_GET_INFO’ undeclared (first use in this function)
libipvs.c: In function ‘ipvs_version’:
libipvs.c:64: error: invalid use of undefined type ‘struct ip_vs_getinfo’
libipvs.c: In function ‘ipvs_flush’:
libipvs.c:70: error: ‘IP_VS_SO_SET_FLUSH’ undeclared (first use in this function)
libipvs.c: In function ‘ipvs_add_service’:
libipvs.c:79: error: ‘IP_VS_SO_SET_ADD’ undeclared (first use in this function)
libipvs.c:79: error: dereferencing pointer to incomplete type
libipvs.c: In function ‘ipvs_update_service’:
libipvs.c:87: error: ‘IP_VS_SO_SET_EDIT’ undeclared (first use in this function)
libipvs.c:87: error: dereferencing pointer to incomplete type
libipvs.c: In function ‘ipvs_del_service’:
libipvs.c:95: error: ‘IP_VS_SO_SET_DEL’ undeclared (first use in this function)
libipvs.c:95: error: dereferencing pointer to incomplete type
libipvs.c: In function ‘ipvs_zero_service’:
libipvs.c:103: error: ‘IP_VS_SO_SET_ZERO’ undeclared (first use in this function)
libipvs.c:103: error: dereferencing pointer to incomplete type
libipvs.c: In function ‘ipvs_add_dest’:
libipvs.c:109: error: dereferencing pointer to incomplete type
libipvs.c:109: error: dereferencing pointer to incomplete type
libipvs.c:112: error: ‘IP_VS_SO_SET_ADDDEST’ undeclared (first use in this function)
libipvs.c: In function ‘ipvs_update_dest’:
libipvs.c:119: error: dereferencing pointer to incomplete type
libipvs.c:119: error: dereferencing pointer to incomplete type
libipvs.c:122: error: ‘IP_VS_SO_SET_EDITDEST’ undeclared (first use in this function)
libipvs.c: In function ‘ipvs_del_dest’:
libipvs.c:129: error: dereferencing pointer to incomplete type
libipvs.c:129: error: dereferencing pointer to incomplete type
libipvs.c:132: error: ‘IP_VS_SO_SET_DELDEST’ undeclared (first use in this function)
libipvs.c: In function ‘ipvs_set_timeout’:
libipvs.c:140: error: ‘IP_VS_SO_SET_TIMEOUT’ undeclared (first use in this function)
libipvs.c:141: error: dereferencing pointer to incomplete type
libipvs.c: In function ‘ipvs_start_daemon’:
libipvs.c:148: error: ‘IP_VS_SO_SET_STARTDAEMON’ undeclared (first use in this function)
libipvs.c:149: error: dereferencing pointer to incomplete type
libipvs.c: In function ‘ipvs_stop_daemon’:
libipvs.c:156: error: ‘IP_VS_SO_SET_STOPDAEMON’ undeclared (first use in this function)
libipvs.c:157: error: dereferencing pointer to incomplete type
libipvs.c: In function ‘ipvs_get_services’:
libipvs.c:166: error: dereferencing pointer to incomplete type
libipvs.c:167: error: invalid application of ‘sizeof’ to incomplete type ‘ipvs_service_entry_t’
libipvs.c:167: error: invalid use of undefined type ‘struct ip_vs_getinfo’
libipvs.c:172: error: dereferencing pointer to incomplete type
libipvs.c:172: error: invalid use of undefined type ‘struct ip_vs_getinfo’
libipvs.c:174: error: ‘IP_VS_SO_GET_SERVICES’ undeclared (first use in this function)
libipvs.c: In function ‘ipvs_cmp_services’:
libipvs.c:189: error: dereferencing pointer to incomplete type
libipvs.c:189: error: dereferencing pointer to incomplete type
libipvs.c:193: error: dereferencing pointer to incomplete type
libipvs.c:193: error: dereferencing pointer to incomplete type
libipvs.c:197: error: dereferencing pointer to incomplete type
libipvs.c:197: error: dereferencing pointer to incomplete type
libipvs.c:201: error: dereferencing pointer to incomplete type
libipvs.c:201: error: dereferencing pointer to incomplete type
libipvs.c: In function ‘ipvs_sort_services’:
libipvs.c:208: error: dereferencing pointer to incomplete type
libipvs.c:208: error: dereferencing pointer to incomplete type
libipvs.c:209: error: invalid application of ‘sizeof’ to incomplete type ‘ipvs_service_entry_t’
libipvs.c: In function ‘ipvs_get_dests’:
libipvs.c:218: error: dereferencing pointer to incomplete type
libipvs.c:218: error: invalid application of ‘sizeof’ to incomplete type ‘ipvs_dest_entry_t’
libipvs.c:218: error: dereferencing pointer to incomplete type
libipvs.c:224: error: dereferencing pointer to incomplete type
libipvs.c:224: error: dereferencing pointer to incomplete type
libipvs.c:225: error: dereferencing pointer to incomplete type
libipvs.c:225: error: dereferencing pointer to incomplete type
libipvs.c:226: error: dereferencing pointer to incomplete type
libipvs.c:226: error: dereferencing pointer to incomplete type
libipvs.c:227: error: dereferencing pointer to incomplete type
libipvs.c:227: error: dereferencing pointer to incomplete type
libipvs.c:228: error: dereferencing pointer to incomplete type
libipvs.c:228: error: dereferencing pointer to incomplete type
libipvs.c:231: error: ‘IP_VS_SO_GET_DESTS’ undeclared (first use in this function)
libipvs.c: In function ‘ipvs_cmp_dests’:
libipvs.c:243: error: dereferencing pointer to incomplete type
libipvs.c:243: error: dereferencing pointer to incomplete type
libipvs.c:247: error: dereferencing pointer to incomplete type
libipvs.c:247: error: dereferencing pointer to incomplete type
libipvs.c: In function ‘ipvs_sort_dests’:
libipvs.c:253: error: dereferencing pointer to incomplete type
libipvs.c:253: error: dereferencing pointer to incomplete type
libipvs.c:254: error: invalid application of ‘sizeof’ to incomplete type ‘ipvs_dest_entry_t’
libipvs.c: At top level:
libipvs.c:259: error: expected ‘)’ before ‘fwmark’
libipvs.c: In function ‘ipvs_get_timeout’:
libipvs.c:288: error: dereferencing pointer to incomplete type
libipvs.c:293: error: ‘IP_VS_SO_GET_TIMEOUT’ undeclared (first use in this function)
libipvs.c: In function ‘ipvs_get_daemon’:
libipvs.c:309: error: dereferencing pointer to incomplete type
libipvs.c:315: error: ‘IP_VS_SO_GET_DAEMON’ undeclared (first use in this function)
libipvs.c: In function ‘ipvs_strerror’:
libipvs.c:357: error: ‘ipvs_get_service’ undeclared (first use in this function)
make[1]: *** [libipvs.o] Error 1
make[1]: Leaving directory `/usr/src/ipvsadm-1.24/libipvs'
make: *** [libs] Error 2
============================================

如何解决?

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

IT运维专家网感谢红之盟网络提供带宽支持

合作联系: QQ:67888954/MSN:cnseek@msn.com/mail:netseek@linuxtone.org

Archiver|手机版|感谢所有关心和支持过LinuxTone的朋友们 转载本站内容请注明原作者名及出处 ( 京ICP备08103151 )   |

GMT+8, 2012-2-8 01:18 , Processed in 0.099148 second(s), 8 queries , Memcache On.

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部