Joke Collection Website - Blessing messages - How to view the occupation details of JAVA ports under Windows?

How to view the occupation details of JAVA ports under Windows?

Start-> Run -> Cmd, or press window+R to bring up the command window, enter the command: netstat-ano, and list all ports. In the list, we observe the occupied port, such as 49 157, and find it first. Check the PID corresponding to the occupied port, enter the command: netstat-aon | findstr "49157", press enter, and write down the last digit, namely PID, where is 2720. Continue to enter tasklist | findstr "2720" and press Enter to see which process or program occupies port 2720. The result is: svchost.exe or we can open the task manager, switch to the process tab, and see who the process corresponding to 2720 is in the PID column. If we can't see the PID column, then we click View-> Select a column, check the box in front of PID, and then click OK. In this way, you can see the identification of PID column and see who the process corresponding to 2720 is. If not, we can look at the processes of all users shown below. We can see that the image name is svchost.exe and the description is the main process of Windows, which is exactly the same as the above command. End process: select a process in the task manager and click the "End Process" button, or enter: taskkill/f/t/imTencentdl.exe in the command window of cmd.