View process and end process command under Windows
1) View the process number occupying port 8080
>netstat –aon | findstr “8080”
Result: TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 3500
It can be seen that the process with process number 3500 occupies port 8080
You can use the command tasklist | findstr "3500" to further view the specific information of the 3500 process.
> tasklist | findstr “3500”
Result: javaw.exe 3500 Console 0 28,792 K
It can be seen that the 3500 process is javaw.exe.
2) Kill the process
> tskill 3500