When you start a program under Windows, you sometimes encounter the port is occupied, because a port can only run a process, so to start a new program will first take the process of the port to kill, the specific command is divided into the following three steps,
To kill a process that occupies 80 ports, for example:
1. Find the process number according to the port number "80"
Netstat-ano|findstr "80"
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 7796
2. Find the process name according to the process number "7796"
Tasklist|findstr 7796
Java.exe 7796 Console 1 57,368 K
3. Kill the process according to the process name
taskkill/f/t/im Java.exe
Success: The process of PID 7796 (which belongs to the PID 9052 child process) has been terminated.
Source: http://blog.csdn.net/rchm8519/article/details/49991805
Windows lower Port occupation workaround-View and kill the occupied port process