简体   繁体   中英

How to setup a Node.js application as a service on Red Hat Linux

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?

您可以使用forevernode.js作为服务运行,并且将nginx Webserver作为前端服务器运行,更多详细信息在这里

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM