node.js - koa有没有类似express的forever之类的模块?
PHPz
PHPz 2017-04-17 16:02:08
0
5
632

我现在把项目部署到腾讯云上,但是我一把SecureCRT关掉,程序的服务也关掉了。我想请问一下有没有像Express可以用forever让服务一直在后台运行的模块呢?thx!

PHPz
PHPz

学习是最好的投资!

reply all(5)
阿神

This has nothing to do with express or koa. You can also start or use pm2 forever

Peter_Zhu

There is a very convenient method:
When deploying a web program on the server, just execute the start web service command in the background.
For example: node server.js &

阿神

Please use the dedicated module for node server deployment: pm2

PHPzhong

In the development and testing phase, I use screen, and then nodemon inside

左手右手慢动作
  1. Linux system integration systemd

  2. supervisor

  3. pm2 vs StrongLoop vs Forever

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template