Comment by mattlondon

6 years ago

Does osx not have the fuser command? It lets you find and kill a process by its tcp port (also file handles) in one command.

On Linux I use something like 'fuser -k 19421/tcp' to kill server processes all the time. It is super useful when working with local dev servers etc!