how to kill all active localhost in mac code example Example: kill port in mac terminal sudo lsof -i :5955