The first step is to execute the command: Netstat-ano
-A show all connections and listening ports
-N Displays the address and port number in digital form. This option is typically used in combination with the-a option
-O Displays the owning process ID associated with each connection.
Active Connections
Proto Local Address Foreign address State PID
TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 656
TCP 0.0.0.0:8080 0.0.0.0:0 LIStening 656
Visible, the PID of a process that occupies 8080 ports is 656
Step two, execute the command: tasklist
Image name PID session name Session # Memory usage
========================= ====== ================ ======== ============
TNSLSNR.exe 656 Console 0 8,992 K
It is visible that the process that occupies port 8080 is TNSLSNR.exe
The third step, through the Task Manager, terminates the process TNSLSNR.exe
Address: http://blog.csdn.net/bits00/article/details/7244071
View port occupancy under windows (bricks)