- Find out what process is running on the port:
Terminal window lsof -i:<port> - Copy the process number from the
PIDcolumn. - Kill the process:
Terminal window kill -9 <process-number> - Confirm that the process has closed by re-running the command at step 1.
Last updated: April 4, 2023