Skip to content

Instantly share code, notes, and snippets.

@naosim
Last active August 29, 2015 14:05
Show Gist options
  • Save naosim/130774a6aea549e06393 to your computer and use it in GitHub Desktop.
Save naosim/130774a6aea549e06393 to your computer and use it in GitHub Desktop.
サーバアプリの起動/停止

#起動

  • ログアウト後も動き続けるように nohupを付ける
  • バックグラウンドで動作するようにコマンドの最後に & をつける
  • 例: nohup node app.js &

#停止

  • ps aux でプロセスIDを調べる
  • kill -9 [ProcessID] で停止
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment