| Start |
|---|
| Use PM2 as a process manager PM2 lets you run your nodejs scripts forever. In the event that your application crashes, PM2 will also restart it for you. Install PM2 globally to manager your nodejs instances Navigate to the directory in which your nodejs script resides and run the following command each time you want to start a nodejs instance to be monitored by pm2: Useful commands for monitoring the process |
| Running and stopping a Forever daemon To start the process: List running Forever instances: Stop the first process: |
| Continuous running with nohup An alternative to forever on Linux is nohup. To start a nohup instance
To kill the process
|
| Process Mangement with Forever Installation Usages |
Read Article
https://develop.horje.com/learn/1434/reference