node expamle.js &
apt-get install upstart // yum here for Centos
------
#!upstart
description "my app"
start on started mountall
stop on shutdown
# Automatically Respawn:
respawn
respawn limit 99 5
env NODE_ENV=production
exec node /somepath/myapp/app.js >> /var/log/myapp.log 2>&1
----
sudo start myapp
sudo stop myapp
sudo restart myapp
$npm install forever -g
$forever start app.js
yum install openssl-devel (если не установлен)
cd /usr/local/src/
wget http://nodejs.org/dist/v0.10.24/node-v0.10.24.tar.gz
tar zxvf node-v0.10.24.tar.gz
cd node-v0.10.24
./configure
make
make install