通过cmd命令,杀掉占用端口号的进程

错误问题:【Error running public: Unable to open debugger port (127.0.0.1:53110): java.net.BindException "Address already in use: JVM_Bind"】

解决步骤:

  1)netstat -aon|findstr 53110   此处的53110 根据自己错误中提示的进行替换

  2)tasklist|findstr 6172    此处的6172 是根据步骤1 获取的的进程号

  3)taskkill -F -IM chrome.exe    此处的chrome.exe 是占用端口的程序  自己根据自己的情况进行修改

解决示例:

         

原文地址:https://www.cnblogs.com/wjxbk/p/9835297.html