How do I leave Node.js server on EC2 running forever?

前端 未结 5 857
逝去的感伤
逝去的感伤 2020-12-22 16:11

As you can tell by my question, I\'m new to this...

I built my first website, I set up my first Node.js server to serve it and then pushed everything live on EC2.

5条回答
  •  执念已碎
    2020-12-22 17:01

    There's a better way. Use forever.js.

    See it here: https://github.com/foreverjs/forever

    This is a nice tutorial for how to use chkconfig with forever on CENTOS.

    http://aronduby.com/starting-node-forever-scripts-at-boot-w-centos/

提交回复
热议问题