Let’s start the discussion about How to kill process running on port in mac in following methods.
To list any process listening to the port 8000:
lsof -i:8000
To kill any process listening to the port 8000:
kill $(lsof -t -i:8080)
or
kill -9 $(lsof -t -i:8080)
I hope the strategies listed above work for you. Happy coding and come back again.
Similar Post : How to allow git to merge unrelated histories