Kill a process running on a specific port on macOS
Published on June 21st, 2023
lsof -i tcp:<port>
- to get the PID by<port>
.kill -9 <PID>
- to kill by<PID>
.
Published on June 21st, 2023
lsof -i tcp:<port>
- to get the PID by <port>
.kill -9 <PID>
- to kill by <PID>
.