Back

windows - 根据端口号干掉进程 kill process by port

发布时间: 2023-06-26 01:15:00

refer to:
https://medium.com/@javatechie/how-to-kill-the-process-currently-using-a-port-on-localhost-in-windows-31ccdea2a3ea

例如,下面是干掉占用了8080端口的进程

1. 找到该进程

netstat -ano | findstr 8080

2. 杀掉

taskkill /pid <1234> /f

Back