Stop(Kill) Localhost Server Using Terminal in macbook
Stop localhost , if it is show stopped in your id but still its running.
Check your terminal should be .zsh
After that type lsof -n -i4TCP:8080 (Where you number like 8080 is your port number).
3.Then type kill -9 23415 (Please make sure in spacing between commands )