加入 主文件是 index.js 那么可以用的方法有: 1.用forever 进行管理 npm install -g foreverforever start index.js 2. 用自带的服务nohub nohup node index.js > myLog.log 2>&1 &