Continuous running with nohup
suggest changeAn alternative to forever on Linux is nohup.
To start a nohup instance
- cd to the location of
app.jsorwwwfolder - run
nohup nodejs app.js &
To kill the process
- run
ps -ef|grep nodejs kill -9 <the process number>
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents