Home > Article > Web Front-end > How to shut down the node process under Windows (command version)
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.
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 figure
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:
4. To kill the port, enter the command: taskkill /f /t /im node.exe;
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!