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