当前位置:   article > 正文

adb端口被占用 5037端口错误_* daemon not running; starting now at tcp:5037 * d

* daemon not running; starting now at tcp:5037 * daemon started successfully

在执行adb devices时发现端口被占用

  1. C:\Users\Administrator>adb devices
  2. * daemon not running; starting now at tcp:5037

发现杀死adb后是一点用没有!!

  1. C:\Users\Administrator>adb kill-server
  2. C:\Users\Administrator>adb devices
  3. * daemon not running; starting now at tcp:5037
  4. * daemon started successfully
  5. List of devices attached

这便尝试占用5037的程序有哪些,执行netstat -aon|findstr "5037",发现有个960的程序占用5037端口

  1. :\Users\Administrator>netstat -aon|findstr "5037"
  2. TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 960
  3. TCP 127.0.0.1:5037 127.0.0.1:51392 TIME_WAIT 0
  4. TCP 127.0.0.1:5037 127.0.0.1:51400 TIME_WAIT 0
  5. TCP 127.0.0.1:5037 127.0.0.1:51401 TIME_WAIT 0

于是,查询960是哪个程序占用的,执行   tasklist|findstr "960",发现有四个程序,只终止adb.exe没用,这四个必须都杀死才可以

  1. C:\Users\Administrator>tasklist|findstr "960"
  2. svchost.exe 1368 Services 0 1,960 K
  3. svchost.exe 2960 Services 0 1,796 K
  4. chrome.exe 7960 Console 1 28,664 K
  5. adb.exe 960 Console 1 11,516 K

依次执行 taskkill /f /t /im XXX.exe

  1. C:\Users\Administrator>taskkill /f /t /im adb.exe
  2. 成功: 已终止 PID 960 (属于 PID 10020 子进程)的进程。

再重新连接,查看连接adb终于好了!!

  1. C:\Users\Administrator>adb devices
  2. List of devices attached
  3. 127.0.0.1:62001 device

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/315985
推荐阅读
相关标签
  

闽ICP备14008679号