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