Linux window query the network port

netstat -tunlp | grep port number

How window to see if the port is occupied

Pid occupied the port program in accordance with the port number lookup: netstat -aon | findstr port number (check out the last one that is pid)

The results in the last column is the process id, process id after you can get it by the end of the taskkill command, as follows: taskkill / pid 1688 / F

Pid occupied the port program in accordance with the port number lookup: netstat -aon | findstr port number (check out the last one that is pid)

Guess you like

Origin www.cnblogs.com/aaronRhythm/p/10947335.html