About the window view port command

Today, Xiao R has learned a new little common sense. I personally think it is quite practical. Maybe some novices should not know it.

For example: everyone knows that the window view command is "netstat -an", 

The picture shows a large push to open the port.

But, do you know how to check which applications are using ports?

Today, Xiao R tells everyone, enter "netstat -ano" (the difference from "netsat -an" is that the former has an additional PID value, and the value of this PID is very useful)

, remember the PID value behind the port, then enter " tasklist|findstr "PID" " , and the program occupying the port will be displayed.

If you want to end the program, there are two ways:

1. Open the task manager, find the corresponding PID value and manually end the program

2. Enter the command to end the program change: taskkill /f /t /im program name eg: taskkill /f /t /im Tencentdl.exe

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325558446&siteId=291194637