如何关闭指定端口占用的进程

1.查找对应的端口占用的进程,找到占用端口对应的程序的PID号:

netstat  -aon|findstr  "9001"   

2.根据PID号找到对应的程序 ,找到对应的程序名:

tasklist|findstr "6676" 

 

3.结束该进程:

taskkill /f /t /im java.exe    或者 taskkill /pid 3356 /f

二、服务删除

sc delete nexus

原文地址:https://www.cnblogs.com/chenjfblog/p/7520507.html