安装:
$npm install -g forever
y@y:ydkt$ forever start server/app.js
warn: --minUptime not set. Defaulting to: 1000ms
warn: --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
info: Forever processing file: server/app.js
y@y:ydkt$ forever list
info: Forever processes running
data: uid command script forever pid id logfile uptime
data: [] wL36 /usr/local/bin/node server/app.js /home/y/.forever/wL36.log :::34.741
y@y:ydkt$ forever stop server/app.js
info: Forever stopped process:
uid command script forever pid id logfile uptime
[] wL36 /usr/local/bin/node server/app.js /home/y/.forever/wL36.log :::54.193
y@y:ydkt$