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

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -