How to nail a port on Mac OS
The command kills a process busy port on Mac OS.
lsof -P | grep ‘: 5000’ | awk ‘{print $ 2}’ | xargs kill -9
where 5000 is the port number
Hey. You are on my site. I am a developer. Here I share my best practices and knowledge. Ask in the comments if you don’t understand something or write if you have something to add.