Node.js Keep a node application constantly running Continuous running with nohup

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Example

An alternative to forever on Linux is nohup.

To start a nohup instance

  1. cd to the location of app.js or wwwfolder
  2. run nohup nodejs app.js &

To kill the process

  1. run ps -ef|grep nodejs
  2. kill -9 <the process number>


Got any Node.js Question?