ipvsadm+keepalived安装错误解决
1、环境:
rhel 6.0+ipvsadm-1.2.6+keepalived-1.2.5
2、安装
实现LVS/DR最重要的两个东西是ipvs内核模块和ipvsadm工具包,现在的系统已经包含ip_vs模块
1)检查内核模块,看一下ip_vs 是否被加载
lsmod |grep ip_vs
ip_vs 35009 0
如果没有显示,则说明没有加载,执行命令 modprobe ip_vs 就可以把ip_vs模块加载到内核
#modprobe ip_vs 然后再查看就有了。
2)安装ipvsadm
查看内核版本 #uname -r
2.6.32-71.el6.x86_64
先把目录/usr/src/kernels/2.6.32-71.el6.x86_64链接为/usr/src/linux,命令如下
ln –s /usr/src/2.6.32-71.el6.x86_64 /usr/src/linux
解压ipvsadm-1.24.tar.gz,执行"make;但是报错了,类似的错误信息大概如下
make -C libipvs
make[1]: Entering directory /usr/src/ipvsadm-1.26/libipvs'<br/>gcc -Wall -Wunused -Wstrict-prototypes -g -fPIC -DLIBIPVS_USE_NL -DHAVE_NET_IP_VS_H -c -o libipvs.o libipvs.c<br/>In file included from libipvs.h:13,<br/>from libipvs.c:23:<br/>ip_vs.h:15:29: error: netlink/netlink.h: No such file or directory<br/>ip_vs.h:16:31: error: netlink/genl/genl.h: No such file or directory<br/>ip_vs.h:17:31: error: netlink/genl/ctrl.h: No such file or directory<br/>In file included from libipvs.h:13,<br/>from libipvs.c:23:<br/>ip_vs.h:520: error: array type has incomplete element type<br/>ip_vs.h:521: error: array type has incomplete element type<br/>libipvs.c:57: warning: implicit declaration of function ‘nlmsg_alloc’<br/>libipvs.c:57: warning: assignment makes pointer from integer without a cast<br/>libipvs.c:61: warning: implicit declaration of function ‘genlmsg_put’<br/>libipvs.c:61: error: ‘NL_AUTO_PID’ undeclared (first use in this function)<br/>libipvs.c:61: error: (Each undeclared identifier is reported only once<br/>libipvs.c: In function ‘ipvs_add_service’:<br/>libipvs.c:255: error: too many arguments to function ‘ipvs_nl_send_message’<br/>libipvs.c: In function ‘ipvs_update_service’:<br/>libipvs.c:276: error: too many arguments to function ‘ipvs_nl_send_message’<br/>libipvs.c: In function ‘ipvs_del_service’:<br/>libipvs.c:296: error: too many arguments to function ‘ipvs_nl_send_message’<br/>libipvs.c: In function ‘ipvs_zero_service’:<br/>libipvs.c:473: warning: assignment makes pointer from integer without a cast<br/>libipvs.c:483: error: too many arguments to function ‘ipvs_nl_send_message’<br/>libipvs.c: In function ‘ipvs_stop_daemon’:<br/>libipvs.c:504: warning: assignment makes pointer from integer without a cast<br/>libipvs.c:514: error: too many arguments to function ‘ipvs_nl_send_message’<br/>libipvs.c: At top level:<br/>libipvs.c:1051: error: ‘NL_OK’ undeclared (first use in this function)<br/>libipvs.c: In function ‘ipvs_get_daemon’:<br/>libipvs.c:1071: error: ‘NLM_F_DUMP’ undeclared (first use in this function)<br/>libipvs.c:1072: error: too many arguments to function ‘ipvs_nl_send_message’<br/>make[1]: *** [libipvs.o] Error 1<br/>make[1]: Leaving directory
/usr/src/ipvsadm-1.26/libipvs'
make: *** [libs] Error 2
解决:yum install libnl libpopt
再次make,还是有报错
类似如 /usr/src/ipvsadm-1.26/ipvsadm.c:667: undefined reference to poptStrerror'<br/>/usr/src/ipvsadm-1.26/ipvsadm.c:667: undefined reference to
poptBadOption'
/usr/src/ipvsadm-1.26/ipvsadm.c:670: undefined reference to poptFreeContext'<br/>/usr/src/ipvsadm-1.26/ipvsadm.c:677: undefined reference to
poptGetArg'
/usr/src/ipvsadm-1.26/ipvsadm.c:678: undefined reference to poptGetArg'<br/>/usr/src/ipvsadm-1.26/ipvsadm.c:679: undefined reference to
poptGetArg'
/usr/src/ipvsadm-1.26/ipvsadm.c:690: undefined reference to poptGetArg'<br/>/usr/src/ipvsadm-1.26/ipvsadm.c:693: undefined reference to
poptFreeContext'
collect2: ld returned 1 exit status
make: *** [ipvsadm] Error 1
解决:yum install popt-static (ftp://ftp.muug.mb.ca/mirror/centos/6.3/os/x86_64/packages/popt-static-1.13-7.el6.x86_64.rpm)
再次make通过,然后make instll 完成安装
3)安装keepalived
keepalived下载
http://www.keepalived.org/software/keepalived-1.2.5.tar.gz
解压 & ./configure & make & make install 完成安装。
转载于:https://blog.51cto.com/5294868/2126681
ipvsadm+keepalived安装错误解决相关推荐
- connection error mysql_MySQL ConnectionError 安装错误 解决方法
MySQL ConnectionError The security settings could not be applied to the database because the connect ...
- sql安装错误解决办法
安装 sql2000 ,提示如下错误解决办法"a previous program installation created pending file operation on the in ...
- pyinstall安装错误解决方法
转载自https://blog.csdn.net/jiangjiangjiang6/article/details/105836332/ 错误提示: ERROR: Command errored ou ...
- Windows 10封装中出现“无法验证你的Windows安装”错误解决方法
近期(当时写文章时在今年4月份)在测试在Windows Server 2016 的虚拟桌面,在测试Windows 7的虚拟桌面时一切良好,但在测试Windows 10的虚拟桌面时,在对Windows ...
- ElasticSearch-5.3.1集群环境搭建,安装ElasticSearch-head插件,安装错误解决
说起来甚是惭愧,博主在写这篇文章的时候,还没有系统性的学习一下ES,只知道可以拿来做全文检索,功能很牛逼,但是接到了任务不想做也不行, leader让我搭建一下分布式的ES集群环境,用来支持企业信用数 ...
- VisualDSP++安装错误解决办法
数字信号处理器 ADSP-BF592KCPZ 的VisualDSP++ 软件安装问题 VisualDSP ++ 是什么? 安装VisualDSP ++ 5.0遇到的问题和解决办法 安装升级包Updat ...
- UE4安装错误解决:MSB3644 framework “.NETFramework,Version=v4.6.2” were not found
错误描述:MSB3644 framework ".NETFramework,Version=v4.6.2" were not found 解决方法:下载并安装.NET Framew ...
- CUDA安装错误解决Missing recommended library
ubuntu 16.04 安装cuda 9 出现的错误:Missing recommended library: libGLU.so:Missing recommended library: libX ...
- netdata 安装错误解决
1.下载超时 错误如下: curl -q -sSL --connect-timeout 10 --retry 3 --output /tmp/netdata-kickstart-yO2WoN/sha2 ...
最新文章
- shell中$XX相关
- layui d多文件上传
- TKinter的常用组件
- Java selenium操作下拉滚动条的几种方法
- 一个基于ngrx的计数器例子 单步调试搞清楚原理
- java ee的小程序_在Java EE应用程序中实现自动重试
- windows IOCP模型
- Android之Camera拍照
- 进击的UI---------------- UITextFieldUIButton
- C语言strcmp函数使用及模拟
- 网络端口号和协议号(大全)
- 怎么授权接入芝麻小程序客服系统?
- 浏览器安全级别怎么设置,设置浏览器安全级别的方法
- ipad 顶部时间电池栏 浏览器无法隐藏
- AI工程师 需要掌握的技能
- 西部数据硬盘第一次启动很慢
- Derby ij工具
- 如何在html中在线预览pdf文件?
- 2022全国节能宣传周 | 志翔科技大数据:支撑电企降碳、生活节能
- 原成都传智播客团队更名新品牌名源代码教育