windows下杀进程

杀占用端口进程

第一步 查占用端口进程:netstat -ano | findstr "8081"

TCP    0.0.0.0:8081           0.0.0.0:0              LISTENING       5220
TCP    10.200.149.45:57530    10.86.216.62:18081     ESTABLISHED     25980
TCP    [::]:8081              [::]:0                 LISTENING       5220

第二步查询占用端口的程序 tasklist|findstr "5220"

macmnsvc.exe                  5220 Services                   0      9,796 K

第三步 杀进程

taskkill /f /pid 5220
原文地址:https://www.cnblogs.com/cplinux/p/15347849.html