Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 209 Bytes

close-port-from-terminal.md

File metadata and controls

13 lines (9 loc) · 209 Bytes

Close a port from the command line

  1. Find the process ID for the process occupying the port (e.g., port 3000 in the example below).
lsof -i :3000
  1. Kill that process.
kill -9 <PID>