LVS-NAT负载均衡,zhanggt,网络拓扑,负载均衡器端配置,1.安装ipvsadm-1.24-10.i386.rpm 2.配置ipvsadm,3.开启路由转发功能:vi /etc/sysctl.conf ip_forward改成1sysctl -p 生效,服务器端配置(两台real server配置相同),1.修改/etc/hosts,完成域名解析:,2.安装httpd 3.配置apache: vi /etc/httpd/conf/httpd.conf ServerName :80 NameVirtualHost 192.168.0.101:80,4.重启: service httpd restart,客户机端访问,