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
Post a Comment