apache tomcat配置

  1. apache的conf下添加work.properties 

worker.list=worker0, worker2, worker3, worker4, worker5, worker6
worker.worker0.type=ajp13
worker.worker0.port=8009
worker.worker0.host=localhost

worker.worker2.type=ajp13
worker.worker2.port=8209
worker.worker2.host=localhost

worker.worker3.type=ajp13
worker.worker3.port=8309
worker.worker3.host=localhost

worker.worker4.type=ajp13
worker.worker4.port=8409
worker.worker4.host=localhost

worker.worker5.type=ajp13
worker.worker5.port=8509
worker.worker5.host=localhost

worker.worker6.type=ajp13
worker.worker6.port=8609
worker.worker6.host=localhost

2. 配置tomcat的server.xml

    修改ajp的端口与work.properties相同   

<Connector port="8509" protocol="AJP/1.3" redirectPort="8443" />
<Engine name="Catalina" defaultHost="localhost" jvmRoute="worker5">


你可能感兴趣的:(apache tomcat配置)