3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Node.jsを簡単にデーモン化する方法

Last updated at Posted at 2016-02-11

概要

node.jsは基本nodeコマンドで動かしますが、実稼働させるには不向きです。
なのでデーモン化して常に稼働出来るようにします。

利用するソフトウェア

https://github.com/foreverjs/forever
上記を使えば簡単に永続化可能になります。

導入手順

予めnpmをインストールする必要があります。

インストール

$ sudo npm -g install forever

起動

$ sudo forever start 起動プログラム

停止

$ sudo forever stop 起動プログラム

これで簡単にデーモン化できます。

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?