Continuous running with nohup
suggest changeAn alternative to forever on Linux is nohup. The usual binary is node. Some Linux packages name it nodejs.
To start a nohup instance:
cdto the directory that containsapp.jsor thewwwfolder.- Run
nohup node app.js &.
To stop the process:
- Run
ps -ef | grep node. - Run
kill <pid>. Usekill -9only if the process ignores a normalkill.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents