How to run Node.js as a background process and never die?
nohup node server.js > /dev/null 2>&1 & nohup means: Do not terminate this process even when the stty is cut off. > /dev/null means: stdout goes to /dev/null (which is a dummy device that does not record any output). 2>&1 means: stderr also goes to the stdout (which is already redirected to /dev/null). You may … Read more