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

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -