The magic Internet port number is occupied Find the process through the port number and kill the process Essay

The Windows 11 system reported that the port number was occupied when it was restarted due to the abnormal shutdown of the magic Internet access, and recorded the previously forgotten operations related to killing the process through the port.
insert image description here
Enter in the command line (win+r, enter cmd):

netstat -ano

You can see the ip address and port number being used by the machine as shown in the figure:
insert image description here
Enter in the command line (win+r, enter cmd):

netstat -ano | findstr “1089”

You can find the process using this port, 58852 is the port number.
insert image description here
Enter in the command line (win+r, enter cmd):

taskskill /pid 58852 -f

You can kill the process occupied by the magic Internet access.

Magic Internet access on Linux or Mac system:

  1. Open a terminal.
  2. Run the following command to find the process ID using the specified port:

lsof -i :<port number>

  1. Find the corresponding process ID (PID) in the output.
  2. Run the following command to kill the process:

kill <process ID>

Note that administrator or root privileges are required to use these commands.

Guess you like

Origin blog.csdn.net/qq_44918090/article/details/132072223