node.js - NodeJS Linux Ubuntu running Issue -


when closing putty closing connection ,my nodejs going off. how can solve ?

but when terminal closed, node server stopped. have express, socket.io , nodemon services. running nodemon.

sudo apt-get install nodejs npm sudo apt-get install npm sudo apt-get install nodejs-legacy node myserver.js 

you running node child process of shell. once shell terminated, of children terminated, in case - node server. detach shell, can run in background using & operator:

$ node myserver.js & 

Comments

Popular posts from this blog

PHP while loop dynamic rowspan -

android - How to read a column value in parse.com without accessing an object or a pointer -

timer - Java TimerTask cancel -