Node.js common useful commands
Download node.js: http://nodejs.org/download/
uinstall node:
http://stackoverflow.com/questions/5650169/uninstall-node-js-using-linux-command-line
which node
/usr/local/bin/node
Find versions:
node -v
npm -v
forever -h
Find node.js process via command line:
ps ax | grep node
kill -2 [pid]
Send port information to Nodejs:
sudo PORT=80 node server.js
Start server.js on port 80:
sudo forever start server.js
Show list;
forever list
Forever start service
forever start [name.js]
Forever stop service
forever stop [pid]
Path to node:
which node
Uninstall nodejs:
sudo apt-get remove nodejs