我可以在同一台机器上运行两个tomcat实例吗? [英] Can I run two tomcat instances on the same machine?

查看:107
本文介绍了我可以在同一台机器上运行两个tomcat实例吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在同一台机器上运行两个具有两个不同端口的Tomcat服务器吗?它会造成任何问题吗?当我运行tomcat时,它将在任务管理器中创建 javaw.exe 文件。

Can I run two Tomcat servers with two different ports on the same machine? Will it create any problem? When I run a tomcat it will create the javaw.exe file in the task manager.

推荐答案

除了更改连接器端口以及其中一个中描述的 protocol =HTTP / 1.1答案如下。

Apart from changing Connector port for protocol="HTTP/1.1" described in one of the answers below.

我认为需要更改关机的服务器端口

I think it requires to change Server port for 'Shutdown'

<Server port="8005" shutdown="SHUTDOWN">

以及 AJP 端口号

<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />

如果你想并行运行多个tomcat实例。

If you want to run multiple tomcat instances in parallel.

这篇关于我可以在同一台机器上运行两个tomcat实例吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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