欢迎各位兄弟 发布技术文章
这里的技术是共享的
用如下的命令,发现5037的端口被占用:C:\Users\gaojs>adb nodaemon servercannot bind 'tcp:5037'
用如下的命令,能查到什么进程占用了这个端口:C:\Users\gaojs>netstat -ano | findstr "5037" TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 21152 TCP 127.0.0.1:5037 127.0.0.1:62629 ESTABLISHED 21152 TCP 127.0.0.1:5037 127.0.0.1:63942 TIME_WAIT 0 TCP 127.0.0.1:5037 127.0.0.1:63943 TIME_WAIT 0 TCP 127.0.0.1:5037 127.0.0.1:63944 TIME_WAIT 0 TCP 127.0.0.1:62629 127.0.0.1:5037 ESTABLISHED 2980
用如下命令,可以看到上述PID的进程,到底是什么了:C:\Users\gaojs>tasklist | findstr "2980"QQ.exe 2980 Console 4 60,712 KC:\Users\gaojs>tasklist | findstr "21152"tadb.exe 21152 Console 4 2,136 K原来是腾讯这个无耻的家伙(tadb就是Tencent Adb)!
用如下的命令,将tadb.exe(PID:21152)杀掉:C:\Users\gaojs>taskkill /f /pid 21152
然后,再试,就可以了:C:\Users\gaojs>adb devices* daemon not running. starting it now on port 5037 ** daemon started successfully *List of devices attached4dfadcb86b00cf05 device
另外,如果要禁止腾讯QQ启动tadb.exe,可以在“设置-基本设置-提醒”中,将“安卓设备连接提醒”的选中状态去掉,就行了。
来自 http://jingyan.baidu.com/article/11c17a2c729d6ff446e39d97.html