简体   繁体   English

如何停止localhost:// 8080上的Apache / Tomcat服务器?

[英]How do I stop Apache/Tomcat server on localhost://8080?

I keep getting errors when trying to serve files locally. 尝试在本地提供文件时,我总是收到错误消息。 I am using Tomcat on port 8080. 我在端口8080上使用Tomcat。

When using Eclipse, I get the following error message: 使用Eclipse时,出现以下错误消息:

Several ports (8080, 8009) required by Tomcat v8.0 Server at localhost are already in use. Tomcat v8.0 Server在本地主机所需的几个端口(8080、8009)已在使用中。 The server may already be running in another process, or a system process may be using the port. 服务器可能已经在另一个进程中运行,或者系统进程可能正在使用该端口。 To start this server you will need to stop the other process or change the port number(s). 要启动此服务器,您将需要停止其他进程或更改端口号。


Question

How do I stop the server on port 8080 if I don't know which process started it? 如果不知道哪个进程启动了服务器,该如何在端口8080上停止服务器?

Try to go with a web browser to: 尝试使用网络浏览器进行以下操作:

localhost:8080 or 127.0.0.1:8080 and localhost:8009 or 127.0.0.1:8009 本地主机:8080或127.0.0.1:8080本地主机:8009或127.0.0.1:8009

There you could see which service is running on those ports. 在那里,您可以看到哪些服务正在这些端口上运行。

Then it will be more simple to understand what you have to stop. 这样一来,您便可以轻松了解要停止的工作。

EDIT: You could use a prompt and the command: 编辑:您可以使用提示和命令:

netstat -b

-b it will show the name of the executable running on a port. -b将显示在端口上运行的可执行文件的名称。

For understanding how it works here a good explanation. 为了了解其工作原理, 这里提供了很好的解释。

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

相关问题 Tomcat服务器启动,但是localhost:8080没有启动 - tomcat server started but localhost:8080 is not up 启动服务器时,如何让Tomcat停止覆盖conf \\ Catalina \\ localhost中的[project] .xml文件? - How do I get Tomcat to stop writing over my [project].xml file in conf\Catalina\localhost when I start the server? Apache Tomcat或Eclipse重定向到localhost:8080 /而不是localhost:8080 / projectname / index.jsp - Apache Tomcat or Eclipse redirect to localhost:8080/ instead of localhost:8080/projectname/index.jsp 我通过Tomcat在Eclipse中托管了服务器,但无法从浏览器访问localhost:8080或我的jsp页面 - I hosted a server in eclipse by tomcat but cant access localhost:8080 or my jsp page from browser Tomcat工作但我无法访问http:// localhost:8080 / - Tomcat works but I can't reach http://localhost:8080/ 无法在我的localhost上运行Apache Tomcat服务器? - Unable to run Apache Tomcat server on my localhost? 尝试在Eclipse中安装apache tomcat时出现“HTTP Status 404 - /”(localhost:8080) - “HTTP Status 404 - /” (localhost:8080) when trying to install apache tomcat in Eclipse Tomcat7(localhost:8080):404错误 - Tomcat7 (localhost:8080): 404 error 无法访问localhost:8080 tomcat默认页面 - cant access localhost:8080 tomcat default page Tomcat 登陆页面不在 localhost:8080 上 - Tomcat Landing Page not comming on localhost:8080
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM