The solution is as follows:
1, start-run -cmd, or press window+R to bring up the command window. As shown in the figure:
2. Enter the command: netstat-ano lists all ports. In the list, we observe the occupied port, such as 49 157, and find it first. As shown in the figure:
3. 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, here is 2720.
4. Continue to the task list | Findstr "2720 "and press Enter to see which process or program occupies port 2720. The result: svchost.exe. As shown in the figure:
5. 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, as shown:
6. Then we click View-Select column, check the box in front of PID, and click OK. As shown in the figure:
7. In this way, you can see the 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. As shown in the figure:
8. 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.
As for the solution of win7 port being occupied, users with the same situation can solve it according to the above method.