How can I find the process id and stop the process that is running on port 8080 on a Mac?
On Ubuntu this works:
ps -aux
and I can find the process and run:
kill -9 pid
ps -aux didn't seem to work, how can I do this on Mac OS X Lion?
|
feedback
|
|
For historical reasons,
I don't have an ubuntu box handy to test, but according to the man page,
| |||
|
feedback
|
|
Use
| |||
|
feedback
|
kill -9 piduntil after you've tried justkill pid. Many processes will have signal handlers which will clean up their use of resources, cleanly close connections and other pre-shutdown tasks. If you kill with -9, the process dies immediately without doing the cleanup. Killing without -9 will work most of the time. – Doug Harris Jan 30 at 19:00