user 1550 1 0 Jun19 ? 00:00:00 node /usr/bin/nodemon src/server.js
user 11051 1550 0 Jun19 ? 00:00:38 /usr/bin/node src/server.js
Can someone tell how this process running in the background? The user is not logged in.
it seems you are running your nodejs Application using nodemon nodemon is used to do auto reload when an application crashed. because nodejs is single thread application, if you did not catch the error safely, it will crash the application. as nodejs is used for server-side application, its needed to use a tool which will do auto restart when its crashed.
you can kill the process by running the below command.
(mine ubuntu):
$ kill -9 <proceessId> //here it will nodemon process it
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.