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

Detailed explanation of MySQL InnoDB index extension

Index extension: InnoDB automatically extends eac...

Pure JS method to export table to excel

html <div > <button type="button&qu...

Implementation of react loop data (list)

First, let's simulate the data coming from th...

URL Rewrite Module 2.1 URL Rewrite Module Rule Writing

Table of contents Prerequisites Setting up a test...

Mysql database scheduled backup script sharing

BackUpMysql.sh script #!/bin/bash PATH=/bin:/sbin...

Sample code for seamless scrolling with flex layout

This article mainly introduces the sample code of...

Detailed steps for developing WeChat mini-programs using Typescript

We don't need to elaborate too much on the ad...

Summary of MySQL date and time functions (MySQL 5.X)

1. MySQL gets the current date and time function ...

Solution to the error reported by Mysql systemctl start mysqld

Error message: Job for mysqld.service failed beca...

Detailed code examples of seven methods for vertical centering with CSS

When we edit a layout, we usually use horizontal ...

Implementing user registration function with js

This article example shares the specific code of ...

Tomcat parses XML and creates objects through reflection

The following example code introduces the princip...

Use CSS to implement special logos or graphics

1. Introduction Since pictures take up a lot of s...

MySQL Order By Multi-Field Sorting Rules Code Example

Say it in advance On a whim, I want to know what ...