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

后端 未结 20 2100
陌清茗
陌清茗 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:03

    I know that is really old question, but found pretty easy to remember, fast command to kill app that are using port.

    Requirements: npm@5.2.0^ version

    npx kill-port 8080
    

    You can also read more about kill-port here: https://www.npmjs.com/package/kill-port

提交回复
热议问题