Node serve shut down and restart.

  node.js, question
Web server listening at:
 Browse your REST API at
 [1] plus Stopped slc run
 julauddeMacBook-Pro:nodelook julaud$ node .
 throw er;  // Unhandled 'error' event
 Error: listen EADDRINUSE
 at Object.exports._errnoException (util.js:874:11)
 at exports._exceptionWithHostPort (util.js:897:20)
 at Server._listen2 (net.js:1234:14)
 at Server._listen2 (/Users/www/node/loopback/nodelook/node_modules/loopback/node_modules/continuation-local-storage/node_modules/async-listener/index.js:72:23)
 at listen (net.js:1270:10)
 at net.js:1379:9
 at doNTCallback3 (node.js:450:9)
 at process._tickDomainCallback (node.js:397:17)

Sometimes node’s service is already on, but sometimes it needs to stop restarting after modifying the configuration file, so it is pressed at the command line.

Ctrl+z key stopped the service, but when node. started the service, an error was reported. only by closing the current terminal panel and reopening a new terminal can it be done.

Is there any good way to do this without reopening the terminal?

Ask Big S for guidance


  • nodemon

  • supervisor

  • forever

  • pm2