node.js - how to run node without getting stuck in the node command prompt -


i've installed node on ubuntu virtual private server , ssh it. run

$nodejs index.js 

but after running file, i'm stuck in node command prompt , can out pressing ctrl-c. doing stops nodejs server. want run server , go shell , other things. how do this?

use pm2. process manager. can whatever after initiate on server. https://github.com/unitech/pm2


Comments

Popular posts from this blog

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

sql server - SQL Query returns one result, does not return 0 or NULL result -