码迷,mamicode.com
首页 > 数据库 > 详细

讨厌的adb占用

时间:2019-06-07 22:55:05      阅读:134      评论:0      收藏:0      [点我收藏+]

标签:article   title   tool   查看   header   data   start   html   head   

adb重启的方法

执行以下命令:

D:\android-sdks\platform-tools>adb kill-server --停止adb服务
D:\android-sdks\platform-tools>adb start-server --开启adb服务

 

如果启动失败则可查看占用5037端口的程序,并将其进程结束掉即可


>netstat -ano | findstr "5037" --查找占用端口号5037的连接

  TCP    127.0.0.1:58440        127.0.0.1:5037         ESTABLISHED     2376

进程ID2376占用了端口号,用以下命令查看进程名称

>tasklist | findstr "2376" --查找进程ID为2376的进程

最后打开任务管理器,将对应的进程结束,重启adb:adb start-server

讨厌的adb占用

标签:article   title   tool   查看   header   data   start   html   head   

原文地址:https://www.cnblogs.com/vana/p/10989255.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!