Home  >  Article  >  Web Front-end  >  How to shut down the node process under Windows (command version)

How to shut down the node process under Windows (command version)

青灯夜游
青灯夜游forward
2021-02-03 18:45:254905browse

This article will introduce to you how to close the node process under Windows. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to everyone.

How to shut down the node process under Windows (command version)

Related recommendations: "nodejs Tutorial"

Close the node process

1. Open the cmd command panel (window r) and enter cmd

2. Check the port occupancy and port, (assuming we want to kill port 3000) enter the command: netstat --ano;

You will see the figureHow to shut down the node process under Windows (command version)

We find the last number corresponding to the 3000 port, which is the number '8276 marked with the red box in the figure '

3. Continue to find the process name corresponding to port 3000. Enter the command: tasklist|findstr "8276";

You will see the following figure:

How to shut down the node process under Windows (command version)

4. To kill the port, enter the command: taskkill /f /t /im node.exe;

How to shut down the node process under Windows (command version)

Summary: The previous three steps are all In order to find out the name of the process corresponding to the port, if you know the name of the process, then directly follow the fourth step to execute the command

For more computer programming related knowledge, please visit:Introduction to Programming! !

The above is the detailed content of How to shut down the node process under Windows (command version). For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete