I connect to the linux server via putty SSH. I tried to run it as a background process like this:
$ node server.js &
However, after 2.5
nohup
will allow the program to continue even after the terminal dies. I have actually had situations where nohup
prevents the SSH session from terminating correctly, so you should redirect input as well:
$ nohup node server.js
Depending on how nohup
is configured, you may also need to redirect standard output and standard error to files.