How to Locate and Shutdown a Local Rails Server
The following will identify any TCP applications listening on port 3000 and kill them. In our example, we're presuming a Rails app running Passenger is on 3000.
kill -9 $(lsof -i tcp:3000 -t)
Alternatively, you can get the PID and run kill seperately.
lsof -i tcp:3000 kill -9 PID
Available Wiki Topics
The operator of this site makes no claims, promises, or guarantees of the accuracy, completeness, originality, uniqueness, or even general adequacy of the contents herein and expressly disclaims liability for errors and omissions in the contents of this website.