nodejs express框架npm start启动改为forever方式

版权声明:可供读者学习参考使用 https://blog.csdn.net/weixin_40169642/article/details/83241993

利用npm start启动项目之后,关闭服务器控制的命令窗口(Xshell)之后对应的端口也关闭了,或者ctrl c结束之后。这时候就需要forever 来管理我们的服务器项目

cd 你的项目路径
forever start -a bin/www
forever start -a app.js

每天进步一点点,开心也多一点点。

猜你喜欢

转载自blog.csdn.net/weixin_40169642/article/details/83241993