Last active
August 29, 2015 14:04
-
-
Save leolanese/72dbf4ff24b40b8385b7 to your computer and use it in GitHub Desktop.
NodeJS http-server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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