本地主机上tomcat v7.0服务器所需的几个端口(8080,8009)已经在使用[duplicate]

时间:2021-05-03 18:11:51

This question already has an answer here:

这个问题已经有了答案:

I built a new web project and added a JSP file to test if it works with the tomcat service. The IDE is Eclipse 3.7 for Java EE, I ran the project, then it showed:

我构建了一个新的web项目,并添加了一个JSP文件来测试它是否与tomcat服务兼容。IDE是Java EE的Eclipse 3.7,我运行了这个项目,然后它显示:

Several ports(8080,8009)required by tomcat v7.0 server at localhost are already in use...

本地主机上tomcat v7.0服务器所需的几个端口(8080,8009)已经在使用中……

So I changed the two ports and ran it again(I'v restarted the tomcat service),but it still didn't work,it showed:

因此我更改了两个端口并再次运行它(我重新启动了tomcat服务),但它仍然不起作用,它显示:

Server tomcat v7.0 server at localhost failed to start.

本地主机的tomcat v7.0服务器启动失败。

So what's the problem?

所以有什么问题?

1 个解决方案

#1


1  

hmm.. on which base OS you 're working . Windows or Linux

嗯. .你在哪个基地工作?Windows或Linux

If it is Windows and you have installed tomcat as a service.. then go to run box in start and type services.msc and then in the opened window you will get to see many service running or stopped in the system. Find out the Tomcat Service and stop it. Then again just run your project again and it will automatically prompt you to start server.

如果是Windows,并且您已经将tomcat安装为服务。然后转到run box in start并键入服务。然后在打开的窗口中,您将看到许多服务在系统中运行或停止。找到Tomcat服务并停止它。然后再次运行您的项目,它将自动提示您启动服务器。

#1


1  

hmm.. on which base OS you 're working . Windows or Linux

嗯. .你在哪个基地工作?Windows或Linux

If it is Windows and you have installed tomcat as a service.. then go to run box in start and type services.msc and then in the opened window you will get to see many service running or stopped in the system. Find out the Tomcat Service and stop it. Then again just run your project again and it will automatically prompt you to start server.

如果是Windows,并且您已经将tomcat安装为服务。然后转到run box in start并键入服务。然后在打开的窗口中,您将看到许多服务在系统中运行或停止。找到Tomcat服务并停止它。然后再次运行您的项目,它将自动提示您启动服务器。