nodejs 在linux上后台运行

1.用forever  进行管理搜索

    npm install -g forever
    forever start index.js
 

2. 用自带的服务nohub

    nohup node index.js > myLog.log 2>&1 &
原文地址:https://www.cnblogs.com/handongyu/p/6257380.html