Answers for "mac kill what is listening on port"

5

kill process running on port mac

sudo lsof -i :3000

kill -9 <PID>
Posted by: Guest on February-11-2021
0

how to kill a service based on port number on mac

lsof -P | grep ':PortNumber' | awk '{print $2}' | xargs kill -9
Posted by: Guest on February-24-2021

Code answers related to "mac kill what is listening on port"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language