[RHEL 4U4] 最小安装后安装配置LVS (RPM)
2006-11-17 14:42
411 查看
前提: 1.关闭iptables 防火墙 2. 关闭SELinux
#安装 ipvsadm
rpm -ivh ipvsadm-1.24-6.i386.rpm
#安装PHP (Disk 2)
rpm -ivh curl-7.12.1-8.rhel4.i386.rpm
rpm -Uvh php-4.3.9-3.15.i386.rpm php-pear-4.3.9-3.15.i386.rpm
#安装piranha
rpm -ivh piranha-0.8.3-1.i386.rpm
Piranha 配置工具默認在端口 3636 上運行。要改變這個端口號碼,改變 piranha-gui 萬維網伺服器配置文件 /etc/sysconfig/ha/conf/httpd.conf 的第二部分的 Listen 3636 這一行。
ref: http://218.9.77.66:89/gate/big5/www.chinahrb.com/book/redhatas3_cluster/s1-lvs-piranha-service.html
配置转发
#查看当前设置
/sbin/sysctl net.ipv4.ip_forward
如果以上命令返回了 1,那麼 IP 轉發就被啟用了。如果它返回了 0,那麼你需要使用以下命令來手工啟用它
arptables -F
arptables -A IN -d $VIP -j DROP
arptables -A OUT -s $VIP -j mangle --mangle-ip-s $RIP
ref:http://kb.linuxvirtualserver.org/wiki/Using_arptables_to_disable_ARP
#安装 ipvsadm
rpm -ivh ipvsadm-1.24-6.i386.rpm
#安装PHP (Disk 2)
rpm -ivh curl-7.12.1-8.rhel4.i386.rpm
rpm -Uvh php-4.3.9-3.15.i386.rpm php-pear-4.3.9-3.15.i386.rpm
#安装piranha
rpm -ivh piranha-0.8.3-1.i386.rpm
Piranha 配置工具默認在端口 3636 上運行。要改變這個端口號碼,改變 piranha-gui 萬維網伺服器配置文件 /etc/sysconfig/ha/conf/httpd.conf 的第二部分的 Listen 3636 這一行。
ref: http://218.9.77.66:89/gate/big5/www.chinahrb.com/book/redhatas3_cluster/s1-lvs-piranha-service.html
配置转发
#查看当前设置
/sbin/sysctl net.ipv4.ip_forward
如果以上命令返回了 1,那麼 IP 轉發就被啟用了。如果它返回了 0,那麼你需要使用以下命令來手工啟用它
/sbin/sysctl -w net.ipv4.ip_forward=1 ref:http://218.9.77.66:89/gate/big5/www.chinahrb.com/book/redhatas3_cluster/s1-lvs-forwarding.html 配置LVS(DR) ARP冲突解决 vi /etc/sysctl.conf net.ipv4.conf.lo.arp_ignore = 1 net.ipv4.conf.lo.arp_announce = 2 net.ipv4.conf.all.arp_ignore = 1 net.ipv4.conf.all.arp_announce = 2 仅修改vi /etc/sysctl.conf不能完全解决arp冲突的问题,使用arping可以看到返回多个地址 用arptables 可以成功解决此问题
Disable ARP for VIP
Basically, we have the following commands to disable ARP for VIP at real servers.arptables -F
arptables -A IN -d $VIP -j DROP
arptables -A OUT -s $VIP -j mangle --mangle-ip-s $RIP
ref:http://kb.linuxvirtualserver.org/wiki/Using_arptables_to_disable_ARP
相关文章推荐
- [RHEL 4U4] 最小安装后安装Apache(RPM)
- RHEL6系统安装时配置支持LVS和MEMCACHED编译环境的方法
- [RHEL 4U4] [最小] 安装Lustre 1.6
- RHEL5.4 lvs+keepalive安装配置
- [RHEL 4U4] [最小] gcc安装
- Ansible(二)-rhel7下yum自动安装配置及使用ansible2.2
- RHEL下DB2 V9.7数据库服务器的安装与配置
- centos和rhel的软件安装方法rpm和yum
- RHEL 6.5系统安装配置图解教程(rhel-server-6.5)
- lvs+keepalived的安装与配置
- 配置rhel 6.4(64位)安装使用syslog-ng 3.5
- 架构设计:负载均衡层设计方案(7)——LVS + Keepalived + Nginx安装及配置
- 理解RHEL上安装oracle的配置参数
- RHEL6.5 db2_data_server_client客户端 安装与配置
- .RHEL 6上KVM的安装配置及使用 网桥
- CentOS/RHEL安装setup配置工具
- 使用LVS实现负载均衡原理及安装配置详解
- LVS安装与配置
- redhat enterprixe 5.0 samba 服务器 rpm 安装及配置
- 超详细!使用 LVS 实现负载均衡原理及安装配置详解