Get the App
SLTechnology News&Howtos  ›  Servers  › 

Solve the problem of running node process in linux system but can't kill process.

Shulou Source: shulou.com Published: 2022-06-02 04:20:21 11月15日 Update

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!

Tags: Processes runs systems ports problems content methods knowledge knowledge points websites errors facets projects help support services Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Shulou Information Redmi Shulou Tech Info MariaDB