如果用pm2作为nodejs的进程管理器的话,参考以下两篇文章
程序员小卡:http://www.cnblogs.com/chyingp/p/pm2-documentation.html
官方:http://www.expressjs.com.cn/advanced/pm.html