Solve the problem of running node process in linux system but can't kill process.
Let's first introduce that running the node process in the linux system cannot kill the process. The details are as follows:
Events.js:72throw er; / / Unhandled 'error' event^ error: listen EADDRINUSEat errnoException (net.js:901:11) at Server._listen2 (net.js:1039:14) at listen (net.js:1061:10) at Server.listen (net.js:1127:5) at EventEmitter.listen (/ root/webServer/node_modules/express/lib/application.js:618:24) at Object. (/ root/webServer/express.js:46:5) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12)
Before opened a port of 8888, can be accessed, and then the shell died, 8888 can still be accessed. After re-running the service at port 8888
Reported the above mistake.
Solution: pkill node
Knowledge expansion: Linux kills / starts the node process
Linux kills the node process
Sudo pkill node
Linux starts the node project
Sudo nohup node xxx.jssudo nohup node xxx.js > xxx.txt 2 > & 1 &
Summary
The above is introduced by the editor to solve the problem of running the node process in the linux system but can not kill the process. I hope it will be helpful to you, and thank you very much for your support to the website!