Skip to content

Instantly share code, notes, and snippets.

@yumyo
Last active December 11, 2015 02:19
Show Gist options
  • Save yumyo/4530046 to your computer and use it in GitHub Desktop.
Save yumyo/4530046 to your computer and use it in GitHub Desktop.
Ports operations on Mac OS X
List open ports on Mac OS X
sudo lsof -i -P | grep -i "listen"
--- Suspende node servers ---
ctrl-z suspends it, which means it can still be running.
ctrl-c will actually kill it.
you can also kill it manually like this:
ps aux | grep node
Find the process ID (second from the left):
kill -9 PRCOCESS_ID
This may also work
killall node
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment