Run the node. js program as a service

Source: Internet
Author: User

After learning node. JS, everyone will eventually use node demo. js to run a written node. js script. However, as a server languageProgramIt is a bit confusing to run services. Overseas search on the Internet is a compromise. List them and hope to use node. JS officially supports servo of these server scripts in the form of Apache, IIS, and other application servers.

  1. Monit: http://mmonit.com/monit/
  2. Upstart: http://upstart.ubuntu.com/
  3. Daemontools: http://cr.yp.to/daemontools.html
  4. Launchtool: http://people.debian.org /~ Enrico/launchtool.html
  5. Forever: https://github.com/indexzero/forever

ChineseCommunityUpstart and forever are much recommended. Of course, there is a simple method for not using a third party:

  1. Node demo. JS &
  2. Nohup node demo. js> output. log &

This article introduces how to use forever.ArticleBecause it is the simplest to talk about, other articles put forever and an init. d, but archlinux does not use inid. D is RC. d, so I'm looking for a way to fix it. That's the sentence:

Forever start demo. js

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.