Last updated: Tuesday, April 4th, 2023
Note
This post was originally published on anca.io. It’s now part of anca.wtf — a space I’m reclaiming and reshaping. Some ideas may age well. Others are here to mark the path.
- Find out what process is running on the port:
Terminal window lsof -i:<port> - Copy the process number from the
PID
column. - Kill the process:
Terminal window kill -9 <process-number> - Confirm that the process has closed by re-running the command at step 1.