Solve the problem of running node process in Linux system but unable to kill the process

Solve the problem of running node process in Linux system but unable to kill the process

Let me first introduce to you that the node process running in the Linux system cannot kill the process. The specific content is as follows:

events.js:72
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE
at 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.<anonymous> (/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)

Previously, I opened a port 8888 and it was accessible. Later, I killed the shell, but 8888 was still accessible. Then restart the service on port 8888

Reported the above error

Solution: pkill node

Knowledge point extension: Linux kills/starts the node process

Kill node process in Linux

sudo pkill node

Linux starts the node project

sudo nohup node xxx.js
sudo nohup node xxx.js > xxx.txt 2>&1 &

Summarize

The above is the editor's introduction to solving the problem of running the node process in the Linux system but not being able to kill the process. I hope it will be helpful to everyone. Thank you very much for your support of the 123WORDPRESS.COM website!

You may also be interested in:
  • Python determines the Linux process and kills the process
  • Detailed explanation of how to force kill a process in Linux
  • How to find occupied ports and kill processes in Linux
  • 8 examples of using killall command to terminate processes in Linux
  • How to Find the Execution Time of a Command or Process in Linux
  • Linux method example to view all information of the process

<<:  Vue uses GraphVis to develop an infinitely expanded relationship graph

>>:  How to manually install MySQL 5.7 on CentOS 7.4

Recommend

Vue echarts realizes dynamic display of bar chart

This article shares the specific code of vue echa...

Share 8 very useful CSS development tools

CSS3 Patterns Gallery This CSS3 pattern library s...

The core process of nodejs processing tcp connection

A few days ago, I exchanged some knowledge about ...

Application and implementation of data cache mechanism for small programs

Mini Program Data Cache Related Knowledge Data ca...

Let you understand the deep copy of js

Table of contents js deep copy Data storage metho...

Nginx uses reverse proxy to implement load balancing process analysis

Introduction Based on docker container and docker...

4 principles for clean and beautiful web design

This article will discuss these 4 principles as t...

Solution to Vue3.0 error Cannot find module'worker_threads'

I'll record my first attempt at vue3.0. When ...

js realizes horizontal and vertical sliders

Recently, when I was doing a practice project, I ...

HTML small tag usage tips

Phrase elements such as <em></em> can ...

Linux remote control windows system program (three methods)

Sometimes we need to remotely run programs on the...

How to monitor array changes in JavaScript

Preface When introducing defineProperty before, I...

An example of the difference between the id and name attributes in input

I have been making websites for a long time, but I...