Server Deployment - apache2.x
Install the apache2.x on Ubuntu system according to the previous blogs.
1. enable the modules we need
>a2enmod proxy
>a2enmod proxy_balancer
>a2enmod proxy_http
2. configurations in /etc/apache2/httpd.conf
<proxy balancer://easymarket/>
BalancerMember http://localhost:8083/easymarket loadfactor=1
BalancerMember http://localhost:8084/easymarket loadfactor=1
BalancerMember http://localhost:8085/easymarket loadfactor=1
</proxy>
ProxyPass /easymarket balancer://easymarket
<Location /balancer-manager>
SetHandler balancer-manager
Order Deny,Allow
Deny from all
Allow from all
</Location>
3. verify the website on URLs:
http://localhost:81/easymarket
you can see the status on URLs:
http://localhost:81/balancer-manager
references:
http://hi.baidu.com/luohuazju/blog/item/4da10152741af5040cf3e3fe.html
Install the apache2.x on Ubuntu system according to the previous blogs.
1. enable the modules we need
>a2enmod proxy
>a2enmod proxy_balancer
>a2enmod proxy_http
2. configurations in /etc/apache2/httpd.conf
<proxy balancer://easymarket/>
BalancerMember http://localhost:8083/easymarket loadfactor=1
BalancerMember http://localhost:8084/easymarket loadfactor=1
BalancerMember http://localhost:8085/easymarket loadfactor=1
</proxy>
ProxyPass /easymarket balancer://easymarket
<Location /balancer-manager>
SetHandler balancer-manager
Order Deny,Allow
Deny from all
Allow from all
</Location>
3. verify the website on URLs:
http://localhost:81/easymarket
you can see the status on URLs:
http://localhost:81/balancer-manager
references:
http://hi.baidu.com/luohuazju/blog/item/4da10152741af5040cf3e3fe.html
本文介绍如何在Ubuntu系统上安装Apache2.x并配置负载均衡。通过启用所需模块及编辑配置文件,实现对三个本地服务的负载均衡,并提供验证网站运行状态的方法。
2580

被折叠的 条评论
为什么被折叠?



