Query port is occupied and the end of the occupation of the port


title: query port is occupied and the end of the occupation of the port
DATE: 2020-03-18 12:03:14
Tags: command line control


  1. win + R open command window

  2. -ano netstat : See all ports occupancy

  3. -aon netstat | findstr "8080" : query occupancy specific port number to find out process PID

  4. tasklist | findstr "6904" (6904 is the port number occupied PID), PID view corresponding process

  5. taskkill /f /t /im EC.exe

    EC.exe refer to the corresponding process

Guess you like

Origin www.cnblogs.com/serahuli/p/12516657.html