node.js - NodeJS process disconnects on SSH session logout -


i doing ssh on server, ubuntu 14.04 server. tried various things keep node server running. type exit , disconnect server ubuntu desktop node server disconnected. though running on server. when ssh server can access it.

i have tried these :

nohup node server.js &   nohup node server.js > /dev/null 2> error.log < /dev/null &  sudo nohup supervisor server.js &  forever start server.js 

also tried using tmux , screen. same problem of these. disconnect ssh node server not available. when login server, available again.

what missing?

though running on server

seems contradict

as disconnect ssh, terminates

are doing special ssh session? ( forwarding server port client ) how check if server running?

possible reasons:

1) test using server's localhost when on server , server ip client: check binding server "0.0.0.0" address , not 127.0.0.1

2) have kind of port forwarding , connect server vi client localhost:forvarded_port -> ssh -> server localhost:remote forward side port. - checj listening on 0.0.0.0, server ip not blocked firewall , try access via direct ip/port


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -