author avatar

adithya.hebbar

Tue Jun 18 2024

To kill a process running on a specific port in mac:

  1. lsof -i :<port_number>
  2. Note the PID of the process from the output.
  3. kill -9 <pid> #killprocess