如何从 Eclipse 的 tomcat 插件更改 tomcat 的端口 [英] How to change port of tomcat from eclipse's tomcat plugin

查看:22
本文介绍了如何从 Eclipse 的 tomcat 插件更改 tomcat 的端口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Eclipse KeplerEclipseTotale 的 tomcat 插件.我在 8080 端口使用 Oracle XE,并希望在 9090 端口运行 Tomcat.我已经更改了 server.xml 并在这一行更改了端口:

I am using Eclipse Kepler and EclipseTotale's tomcat plugin. I am using Oracle XE at port 8080, and want to run Tomcat at port 9090. I have changed server.xml and changed the port at this line :

 <Connector connectionTimeout="20000" port="9090" protocol="HTTP/1.1" 
redirectPort="8443"/>

它仍然说该地址已被使用.另外,我有点怀疑更改 server.xml 是否会产生任何影响,因为我选择了 Context Decalration ModeContext Files而不是 server.xml

It still says the address is already in use. Also, I am a little skeptical as to whether changing server.xml will have any effect as I have selected Context Decalration Mode to be Context Files instead of server.xml

有什么建议吗?

推荐答案

修改了tomcat主目录下的server.xml后就可以了.问题是有多个正在运行的tomcat 实例.我也更改了其他连接器的端口.这可能也有影响,但我不确定.

It worked after changing server.xml in tomcat's home directory. The problem was that there were multiple instances of tomcat that were running. I changed the ports of other connectors too.. that may also have had an effect, though I am not sure.

这篇关于如何从 Eclipse 的 tomcat 插件更改 tomcat 的端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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