Check which processes occupy the port number and how to check its corresponding program based on the PID

View port number

Enter in the terminal:netstat -ano

Insert image description here

The program corresponding to the PID

First press shift + Ctrl + esc, and the PID will be displayed by right-clicking on the "Status" of the task manager

Insert image description here

Task Manager can search for PID, and you will know the port number if you find the corresponding PID.

Insert image description here

Faster way to query PID: powershell inputGet-Process

Handles - Number of handles opened by this process.
NPM(K) - resident memory set size.
PM(K) - Paged memory set size. (Represents process private memory size)
WS(K) - Working set size. (Virtual address space size)
CPU(s) - The amount of CPU time used by this process.
Id - The ID number of this process.
SI - Number of external citations? ? ?
ProcessName - Process name.

Insert image description here

Add

tasklistYou can also print out all processes:

It’s the process in the task manager
Insert image description here

tasklist | findstr "xxxx"Screening process, tasklist | findstr "Ape Ruyi"

Insert image description here

Guess you like

Origin blog.csdn.net/Yedge/article/details/130253444