Pylons: address already in use when trying to serve

resopollution picture resopollution · Jul 1, 2009 · Viewed 14k times · Source

I'm running pylons and I did this: paster server development.ini It's running on :5000

But when I try to run the command again: paster serve development.ini

I get this message: socket.error: [Errno 98] Address already in use

Any ideas?

Answer

therealmarv picture therealmarv · Feb 2, 2012

I've found this trick in a forum:

This will kill all programs listening to port 5000

kill -9 `fuser -n tcp 5000`