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

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

问题描述

我正在使用 Eclipse Kepler EclipseTotale 的tomcat插件。我在端口 8080 使用 Oracle XE ,并希望在端口 9090 。我已经更改了 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 将会有任何影响,因为我选择了上下文贴图模式

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天全站免登陆