Programs to query port usage and clear port usage in Windows operating system

Programs to query port usage and clear port usage in Windows operating system

In Windows operating system, the program to query port occupation and clear port occupation

netstat -ano|findstr 8080
 taskkill /pid 4632 /F

Windows port usage

Start -- Run -- cmd Enter the command prompt and enter netstat -ano to see the PIDs of all connections. Then find the program corresponding to this PID in the Task Manager (right-click the status bar on the computer screen to find it). If there is no PID item in the Task Manager, you can select "View" - "Select Columns" in the Task Manager.

1. View the PID of all connections

Start -- Run -- cmd, enter netstat -ano

After finding the PID corresponding to the port number, stop the program corresponding to the PID from the Task Manager.

2. View the program occupying port 8080

①First C:>netstat -ano|findstr "8080"

Protocol Local Address External Address Status PID

TCP 127.0.0.1:1433 0.0.0.0 LISTENING 4984

② Then C:>tasklist|findstr "4984"

Image Name PID Session Name Session # Memory Usage

sqlservr.exe 4984 Services 0 51,844 K

P: It is very clear, it is the sqlserver service that occupies port "1433", so kill it.

3. End the process

C:\>taskkill /f /t /im sqlservr.exe

or

C:\>taskkill /F /pid “4984”

Summarize

The above is the program that the editor introduced to you for querying port occupation and clearing port occupation in the Windows operating system. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!
If you find this article helpful, please feel free to reprint it and please indicate the source. Thank you!

You may also be interested in:
  • Installation and use of nginx under Windows and solution to the problem that port 80 is occupied and nginx cannot be started
  • Solution to the error "Windows cannot find the -n file" when installing xampp on win7 (after successful installation, port 443 is occupied and the apache server cannot start normally)
  • How to solve the problem of port occupation in Windows and Linux systems

<<:  Using react-beautiful-dnd to implement drag and drop between lists

>>:  Detailed example of sorting function field() in MySQL

Recommend

HTML Basic Notes (Recommended)

1. Basic structure of web page: XML/HTML CodeCopy...

MySQL prepare principle detailed explanation

Benefits of Prepare The reason why Prepare SQL is...

Methods to enhance access control security in Linux kernel

background Some time ago, our project team was he...

Navicat imports csv data into mysql

This article shares with you how to use Navicat t...

Best Practices for MySQL Upgrades

MySQL 5.7 adds many new features, such as: Online...

Nginx/Httpd reverse proxy tomcat configuration tutorial

In the previous blog, we learned about the usage ...

How to build a MySQL PXC cluster

Table of contents 1. Introduction to PXC 1.1 Intr...

Use viewport in meta tag to define screen css

<meta name="viewport" content="w...

Install Python 3.6 on Linux and avoid pitfalls

Installation of Python 3 1. Install dependent env...

Detailed explanation of the definition and function of delimiter in MySQL

When you first learn MySQL, you may not understan...

Detailed explanation of common for loop in JavaScript statements

There are many loop statements in JavaScript, inc...

HTML validate HTML validation

HTML validate refers to HTML validation. It is the...