1 | #scp /etc/profile.d/{java.sh tomcat.sh } 192.168.10.9:/etc/profile.d/ |
基于mod_proxy实现负载均衡
在httpd.conf的虚拟主机中配置如下内容:
1 | ProxyRequests Off |
如果出错,看日志;;
172.16.100.106/balancer-manager
1 | #vim /usr/local/tomcat/conf/server.xml |
两台Tomcat主机:
1 | # mkdir /web/webapps/WEB-INF |