2

I created a node.js application. It is a web server with the Express framework. I can start it with the command node server.js. This application is deployed on a Red Hat Enterprise server.

I want this applicaion can:

  1. Start automatically when the OS is started.
  2. Restart automatically when it crashes.

I think OS service can meet my requirements, right? Is there any clue how to setup the Node.js application as service on Red Hat?

Joachim Sauer
  • 302,674
  • 57
  • 556
  • 614
Jeffrey
  • 4,436
  • 9
  • 38
  • 54

1 Answers1

0

You can run node.js as service with forever, and run nginx webserver as front end server, more details here

Community
  • 1
  • 1
dark_ruby
  • 7,646
  • 7
  • 32
  • 57