Testers must know the port number occupied by command View

View windows on the port is occupied:
 

1 window + R, DOS Prompt

2 See all ports appropriations:

netstat -ano
 
 
3 View a specific port is occupied situation:
netstat -ano | findstr [port number]
 
 
4 View a port is occupied by what process:
tasklist | findstr [port number]
 
 
 
View port appropriations under linux:
 
 
 
 
 
 
 
 
 

Guess you like

Origin www.cnblogs.com/wenm1128/p/12131808.html