Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to end the node process and kill the designated port with the bat batch file

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains the "how to use bat batch file to end the node process and kill the designated port", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "how to use bat batch file to end the node process and kill the designated port" bar.

Method 1:

Create a new killAllNode.bat file, write the following code, and double-click to run the bat file to end the node process

Echo offecho killAll node server?pausekill node.exetasklisttaskkill / im node.exe-fpause

Method 2:

1. Check the occupancy of the designated port

Netstat-aon | findstr "8080"

The port is occupied by the process with process number 4136

2. Directly force to kill the designated port

Taskkill / pid 4136-t-f

Thank you for your reading, the above is the "how to use bat batch file to end the node process and kill the designated port" of the content, after the study of this article, I believe you on how to use bat batch file to end the node process and kill the designated port of this problem has a more profound experience, the specific use of the situation also needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report