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

VMware Workstation Pro 16 License Key with Usage Tutorial

VMware Workstation is a powerful desktop virtual ...

Supplementary article on front-end performance optimization

Preface I looked at the previously published arti...

Install docker offline by downloading rpm and related dependencies using yum

You can use yum to install all dependencies toget...

Jenkins builds Docker images and pushes them to Harbor warehouse

Table of contents Dockerfile pom.xml Jenkins Conf...

Detailed explanation of Vue's sync modifier

Table of contents 1. Instructions 2. Modifiers 3....

jQuery plugin to implement floating menu

Learn a jQuery plugin every day - floating menu, ...

Vue implements nested routing method example

1. Nested routing is also called sub-routing. In ...

CSS3 Bezier Curve Example: Creating Link Hover Animation Effects

We will use CSS3 animated transitions to create a...

Tutorial diagram of installing zabbix2.4 under centos6.5

The fixed IP address of the centos-DVD1 version s...

Summary of the unknown usage of "!" in Linux

Preface In fact, the humble "!" has man...

Summary of Docker Data Storage

Before reading this article, I hope you have a ba...

Nginx location matching rule example

1. Grammar location [=|~|~*|^~|@] /uri/ { ... } 2...

Compatibility with the inline-block property

<br />A year ago, there were no articles abo...

HTML table markup tutorial (10): cell padding attribute CELLPADDING

Cell padding is the distance between the cell con...