首页 > 代码库 > centos6.4安装lvs+keepalive
centos6.4安装lvs+keepalive
环境说明:
[root@db html]# uname -a Linux db 2.6.32-358.el6.x86_64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux [root@db html]# cat /etc/redhat-release CentOS release 6.4 (Final)
lvs安装部署:
1、查看内核模块是否支持
lsmod | grep ip_vs #发现没有
2、安装
wget http://www.linuxvirtualserver.org/software/kernel-2.6/ipvsadm-1.26.tar.gz tar zxf ipvsadm-1.26.tar.gz cd ipvsadm-1.26 yum -y install kernel-devel ln -s /usr/src/kernels/2.6.32-431.17.1.el6.x86_64/ /usr/src/linux make && make install
3、报错信息解决
报错: make[1]: *** [libipvs.o] Error 1 make[1]: Leaving directory `/mnt/tools/ipvsadm-1.26/libipvs‘ make: *** [libs] Error 2 解决: yum -y install libnl* popt*
4、加载ip_vs模块
#执行ipvsadm命令加载 ipvsadm #查看结果 [root@shell ~]# lsmod |grep ip_vs ip_vs_rr 1420 1 ip_vs 115643 3 ip_vs_rr libcrc32c 1246 1 ip_vs ipv6 321422 137 ip_vs
keepalived安装部署:
yum install openssl openssl-devel –y yum install popt* -y wget http://www.keepalived.org/software/keepalived-1.1.19.tar.gz tar zxf keepalived-1.1.19.tar.gz cd keepalived-1.1.19 #./configure && make && make install ./configure --sysconf=/etc && make && make install /bin/cp /usr/local/sbin/keepalived /usr/sbin/
OK,上述步骤已经完成
本文出自 “技术成就未来” 博客,请务必保留此出处http://jishuweiwang.blog.51cto.com/6977090/1426650
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。