8080 Solution port is occupied netstat -ano; taskkill (command line)

8080 Solution port is occupied netstat -ano; taskkill (command line)

(Ano and aon can)

Open a command line:

(1) netstat -ano can view the port usage, remember PID

netstat -ano

Here Insert Picture Description
(2) can directly view the specified port occupancy, remember PID

netstat -ano|findstr 8080

Here Insert Picture Description
(3) to kill the process (for example, PID is: 14732)

taskkill /F /PID 14732

Here Insert Picture Description

  • Parameter Description:

    / F Specifies the forced termination process.

  • View more parameters: Use: taskkill -?

Published 348 original articles · won praise 1746 · Views 1.91 million +

Guess you like

Origin blog.csdn.net/qq_40147863/article/details/96600958