View & windows port shutdown process

Port occupied by the problems encountered in some cases, resolve:

1, view the port occupancy

Command: netstat -ano

Command: netstat -ano | findstr need to release the port number

2, view the process of occupying a port

命令:tasklist | findstr "8080"

3, will take up this port or off the end of the process

Command: taskkill / f / pid pid need to get rid of ports

Command: taskkill / f / t / im java.exe

Guess you like

Origin www.cnblogs.com/kaspar/p/11975941.html