Sunday, March 18, 2012

Kill a process on a specific port

Here is how you easily can kill processes running on a particular port on Linux:

lsof -ti :8080 | xargs kill -9

This is useful when for some reason your server has stopped working properly.

No comments:

Post a Comment