Check the port is occupied cmd command under Window10

Check the port is occupied cmd command under Window10

  1. Enter the cmd interface and enter the netstat -ano command (to view the occupancy of all ports) or netstat -aon|findstr "specific port number" (to view the occupancy of the specified port)
netstat -ano						(查看所有端口占用情况)
netstat -aon|findstr "具体端口号"		(查看指定端口占用情况)

insert image description here
insert image description here

  1. Enter the tasklist|findstr "PID" command to find the corresponding PID process name of the occupied port
tasklist|findstr "PID"	(找到被占用端口的相应的PID进程名称)

insert image description here

  1. Open the task browser, you can find the corresponding program through PID or application program and close it
    insert image description here

Guess you like

Origin blog.csdn.net/qq_45844443/article/details/116780477