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.
- Monit: http://mmonit.com/monit/
- Upstart: http://upstart.ubuntu.com/
- Daemontools: http://cr.yp.to/daemontools.html
- Launchtool: http://people.debian.org /~ Enrico/launchtool.html
- 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:
- Node demo. JS &
- 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