Right now i am runnign my nodejs application as npm start
. i want to run it in background. I found forever
package for this but dont know how can i run
For Linux Use terminal and enter in superuser mode, and try these code
$ nohup node &
$ exit
Note: This '&' is must before you press enter
or for npm command, just goto the location by cd command where your package.json is stored. Then
$ nohup npm start &
$ exit
Note: This '&' is must before you press enter
To stop it
$ top
You can see process id here, then use following code
$ kill -9