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
  • 291,719
  • 55
  • 540
  • 600
Jeffrey
  • 4,286
  • 8
  • 36
  • 52

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,166
  • 4
  • 30
  • 54