Solve the occupancy of port 8080 under Windows

Open Tomcat, and prompt that port 8080 is occupied. The solution is as follows:

  1. Enter netstat -ano|findstr "8080" to find the PID of the process occupying the port , this machine is 3864
  2. Enter tasklist|findstr 3864 to get the name of the occupied program, my computer is ApplicationWebServer
  3. Taskkill /f /t /im ApplicationWebServer.exe
    Another convenient method is:
    after performing the steps described in 1 above, enter taskkill /F /PID 3864 , so that the problem of port occupied can be solved.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325655816&siteId=291194637