How do I kill the process currently using a port on localhost in Windows?

后端 未结 20 2305
陌清茗
陌清茗 2020-11-22 11:37

How can I remove the current process/application which is already assigned to a port?

For example: localhost:8080

20条回答
  •  不要未来只要你来
    2020-11-22 12:05

    If you are using GitBash

    Step one:

    netstat -ano | findstr :8080
    

    Step two:

    taskkill /PID typeyourPIDhere /F 
    

    (/F forcefully terminates the process)

提交回复
热议问题