JGallardo
JGallardo

Reputation: 11373

Stop apache on port 8080

I am on a Mac running OSX 10.9.4

I am trying to run a Nesta app, it uses localhost:8080. I know that the app is not using the port since mr-sparkle has not yet installed.

But I entered the address and see that i left something is running. How can i find what that is and kill it, in plain English with minimal jargon. All i need is the command for the terminal.

I have tried

And various others but I cannot see the PID running on 8080.

This is what is showing at that localhost.

enter image description here

Edit 1

I ran netstat -l -p | grep 8080 per a suggestion but got this

enter image description here

Upvotes: 2

Views: 7535

Answers (1)

Jean-François Savard
Jean-François Savard

Reputation: 21004

Supposing you are on unix, use the netstat command with -p to retrieve the pid, pipe it in a grep of port 8080.

 netstat -l -p | grep 8080

Now that you have the process id,

pkill -9 id

Edit : Since you commented and specify you are on OSX, try with

lsof -nP -i | grep 8080

then kill the process using pkill

Upvotes: 1

Related Questions