在同一端口上运行Tomcat的多个实例 [英] Running Multiple Instances of Tomcat on same port

查看:273
本文介绍了在同一端口上运行Tomcat的多个实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在同一端口上以不同目录名称运行tomcat6的多个实例.我将为两个不同的项目安装两次tomcat6.但是如何配置两个实例在同一端口上运行?

I need to run multiple instances of tomcat6 under different directory names on the same port. I will install tomcat6 twice for two different projects. But how to configure both the instances to run on the same port?

推荐答案

您可以使用apache网络服务器来实现这一点,该服务器基于使用mod_jk或mod_proxy的应用程序对请求进行定向. (并获得两个扩展名的说明)

You could realise this using an apache webserver that is directing the requests based on the application using mod_jk or mod_proxy. (and get an explanation on both extensions)

要选择要使用的apache扩展名: Apache totomcat:mod_jk vs mod_proxy

To choose which apache extension to use: apache to tomcat: mod_jk vs mod_proxy

这篇关于在同一端口上运行Tomcat的多个实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆