找了N编都好复杂~感觉很老了~linux下和WIDOWS下通用 环境 apace2.2 tomcat.6.14 怎么装网上资料N多.装不是问题配置如下 : ==httpd.conf=================
ProxyRequests Off ProxyPass / balancer://myCluster/
<Proxy balancer://myCluster/>
BalancerMember ajp://192.168.0.190:8009 route=tomcat1
BalancerMember ajp://192.168.0.102:8009 route=tomcat2
</Proxy>
==server.xml=======================
<Server port="8005" shutdown="SHUTDOWN">
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
<Listener className="org.apache.catalina.core.JasperListener" />
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" /><Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
<GlobalNamingResources>
<Resource name="UserDatabase"
auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
</GlobalNamingResources>
<Service name="Catalina">
<Connector port="8080" protocol="HTTP/1.1" URIEncoding="GBK" connectionTimeout="20000" redirectPort="8443" />
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
<Engine name = "Standalone" defaultHost = "localhost" jvmRoute = "tomcat1"/>
<Engine name="Catalina" defaultHost="localhost">
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
<Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/>
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
</Host>
</Engine>
</Service>
</Server>
莫有了~可简单.我折腾了两天.