Skip to content

Instantly share code, notes, and snippets.

@leolanese
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leolanese/72dbf4ff24b40b8385b7 to your computer and use it in GitHub Desktop.
Save leolanese/72dbf4ff24b40b8385b7 to your computer and use it in GitHub Desktop.
NodeJS http-server
// install the node http-server server
npm -g install http-server
// run this server:
http-server
// get the process that has bound to the required port
lsof -Pi | grep LISTEN
...
node 18740 Leo 12u IPv4 0xaf78c883a32c84bf 0t0 TCP *:8081 (LISTEN)
...
// kill process (or cmd+c)
kill -9 18740
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment