简体   繁体   中英

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.

When using Eclipse, I get the following error message:

Several ports (8080, 8009) required by Tomcat v8.0 Server at localhost are already in use. 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?

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

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.

For understanding how it works here a good explanation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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