After the port is occupied under windows, the command to kill the process

According to the port number, query the process ID

  1. netstat -ano |findstr 8080

According to the process ID, query the corresponding program name 2. tasklist|findstr process ID

kill corresponding program 3. taskkill -f -t -im javaw.exe

Guess you like

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