简体   繁体   English

tomcat 和 eclipse:启动服务器

[英]tomcat and eclipse: starting server

in my system i am using eclipse and tomcat server.在我的系统中,我使用的是 eclipse 和 tomcat 服务器。 I hav 3 different versions of tomcat servers.我有 3 个不同版本的 tomcat 服务器。

But i am trying to run only one server at a time.但我试图一次只运行一台服务器。 But by default Already one server is running on port number 8080. When i am trying to start the tomcat server in 8081 port, the tomcat server is not getting start.但默认情况下,已经有一台服务器在端口号 8080 上运行。当我尝试在 8081 端口中启动 tomcat 服务器时,tomcat 服务器没有启动。
I have configured my tomcat home, and server.xml in eclipse properly.我已经在 eclipse 中正确配置了我的 tomcat 主页和 server.xml。 But I don't know what I am missing.但我不知道我错过了什么。 please guide me.请指导我。

It sounds like you don't have your port numbers defined and each tomcat instance is fighting to grab the port range first before the others.听起来您没有定义端口号,并且每个 tomcat 实例都在争先恐后地抢占端口范围。

Check your config file to make sure the port numbers are specified for each instance.检查您的配置文件以确保为每个实例指定端口号。

see how to change port in y=tomcat, may be you forgot to change some where查看如何更改 y=tomcat 中的端口,可能是您忘记更改某些位置
http://www.mkyong.com/tomcat/how-to-change-tomcat-default-port/ http://www.mkyong.com/tomcat/how-to-change-tomcat-default-port/

you can stop another tomcat service before you start your tomcat gets started, end process tomcatX (X is version) from task-manager您可以在启动 tomcat 开始之前停止另一个 tomcat 服务,从任务管理器结束进程tomcatX (X 是版本)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM