欢迎来到天天文库
浏览记录
ID:21235572
大小:69.50 KB
页数:6页
时间:2018-10-20
《在redhat el 4.0 中实现高可用web负载均衡群集》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、在RedHatEL4.0中实现高可用WEB负载均衡群集 一、Director配置 1、设置网络接口地址 [rootdirectorroot]#vi/etc/sysconfig/ask255.255.255.255up /sbin/routeadd-host$VIPdeveth0:0 #ClearipvsTable /sbin/ipvsadm-C #setlvs /sbin/ipvsadm-A-t$VIP:80-srr /sbin/ipvsadm-a-t$VIP:80-r$RIP1:80-g /sbin/ipvsadm-a-t$VIP:80-r$RIP2:80-g
2、#RunLvs /sbin/ipvsadm ;; stop) echocloseLVSDirectorsever /sbin/ipvsadm-C /sbin/ifconfigeth0:0dood755/etc/init.d/lvsdr 3、安装ipvsadm [rootDirectorroot]#modprobe–l
3、grepipvs /lib/modules/2.6.9-11.EL/kernel/ipv4/ipvs/ip_vs.ko /lib/modules/2.6.9-11.EL/kernel/ipv4/ipvs/ip_vs_ftp.ko /lib
4、/modules/2.6.9-11.EL/kernel/ipv4/ipvs/ip_vs_lblc.ko /lib/modules/2.6.9-11.EL/kernel/ipv4/ipvs/ip_vs_odules/2.6.9-11.EL/kernel/ipv4/ipvs/ip_vs_sed.ko /lib/modules/2.6.9-11.EL/kernel/ipv4/ipvs/ip_vs_rr.ko /lib/modules/2.6.9-11.EL/kernel/ipv4/ipvs/ip_vs_odules/2.6.9-11.EL/kernel/ipv4/ipvs/ip_vs_
5、nq.ko /lib/modules/2.6.9-11.EL/kernel/ipv4/ipvs/ip_vs_sh.ko /lib/modules/2.6.9-11.EL/kernel/ipv4/ipvs/ip_vs_dh.ko /lib/modules/2.6.9-11.EL/kernel/ipv4/ipvs/ip_vs_lblcr.ko /lib/modules/2.6.9-11.EL/kernel/ipv4/ipvs/ip_vs_lc.ko [rootdirectorroot]#ln–s/usr/src/kernels/2.6.9-11.EL-i686/usr
6、/src/linux [rootdirectorroot]# tarxzvfipvsadm-1.24.tar.gz [rootdirectoripvsadm-1.24]#cdipvsadm-1.24 [rootdirectoripvsadm-1.24]#make [rootdirectoripvsadm-1.24]#makeinstall 由于在这里我搭建的是–qa
7、grephttp查看是否已经安装) [rootdirectorroot] # tarxzvfhttpd-2.2.4.tar.gz [rootdirectorroot] #cdhttpd-2.2.4
8、 [rootdirectorhttpd-2.2.4]#./con1234下一页....,。figure–prefix=/usr/local/apache–enable-so–enable-reake [rootdirectorlib]#makeinstall [rootdirectorlib]#cd 在安装heartbeat之前还需要创建属于heartbeat的组和用户 [rootdirectorroot]#groupadd–g694haclient [rootdirectorroot]#useradd–g694&
9、ndash;u694hacluster [rootdirectorroot]#tarxzvfheartbeat-2.1.2.tar.gz [rootdirectorroot]#cdheartbeat-2.1.2 [rootdirectorheartbeat-2.1.2]#./ConfigureMeconfigure [rootdirectorheartbeat-2.1.2]#make [rootdirectorheartbeat-2.
此文档下载收益归作者所有