安装forever
npm install -g forever
使用forever开启nodejs程序
forever start xxx.js
如果不需要一直运行nodejs程序
forever stop xxx.js
运行nodejs的程序,使用命令:node xxx.js,但是关掉终端,程序也关闭了,如何让node app的程序一直运行?
原文:https://www.cnblogs.com/aididiao/p/12031364.html