9951 explained code solutions for 126 technologies
nodejsHow to run Node.js script in background
nohup node script.js > log.log &
ctrl + c
nohup allows running commands in background | node Node.js executable |
script.js path to Node.js script file | log.log will contain output from script (if any) |
|