Skip to content

Instantly share code, notes, and snippets.

@MattSandy
Last active August 29, 2015 14:27
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 MattSandy/5ad74a5ef285bdd1790d to your computer and use it in GitHub Desktop.
Save MattSandy/5ad74a5ef285bdd1790d to your computer and use it in GitHub Desktop.
#Route port 3000 to 80
sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3000
#Search for running node.js processes
ps aux | grep node
#Kill process
kill -9 [id]
#Run node.js after closing shell
nohup nodejs app.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment