search

Home  >  Q&A  >  body text

node.js - koa有没有类似express的forever之类的模块?

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

PHPzPHPz2786 days ago638

reply all(5)I'll reply

  • 阿神

    阿神2017-04-17 16:04:08

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

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-17 16:04:08

    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 &

    reply
    0
  • 阿神

    阿神2017-04-17 16:04:08

    Please use the dedicated module for node server deployment: pm2

    reply
    0
  • PHPz

    PHPz2017-04-17 16:04:08

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

    reply
    0
  • ringa_lee

    ringa_lee2017-04-17 16:04:08

    1. Linux system integration systemd

    2. supervisor

    3. pm2 vs StrongLoop vs Forever

    reply
    0
  • Cancelreply