今天想调试google官方给的sip-deamon,结果启动不了adb
C:\Users\xxxx>adb start-server adb server is out of date. killing... ADB server didn't ACK * failed to start daemon *
一直这样报错,百度一下,才知道是端口被占用了。
C:\Users\xxxx>adb nodaemon server cannot bind 'tcp:5037'
查看是哪个端口被占用
C:\Users\xxxxxx>netstat -ano | findstr "5037" TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 4236 TCP 127.0.0.1:5037 127.0.0.1:49422 ESTABLISHED 4236 TCP 127.0.0.1:49422 127.0.0.1:5037 ESTABLISHED 3840
然后结束掉pid为4236的进程
taskkill /pid 4236