adb error,判断端口占用方法

2018-03-23  本文已影响0人  endian

D:\LianXi\AYKJ>netstat -nao | findstr "5037"
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 2432
TCP 127.0.0.1:5037 127.0.0.1:51419 ESTABLISHED 2432
TCP 127.0.0.1:5037 127.0.0.1:51446 ESTABLISHED 2432
TCP 127.0.0.1:5037 127.0.0.1:51518 ESTABLISHED 2432
TCP 127.0.0.1:51419 127.0.0.1:5037 ESTABLISHED 6200
TCP 127.0.0.1:51446 127.0.0.1:5037 ESTABLISHED 5456
TCP 127.0.0.1:51518 127.0.0.1:5037 ESTABLISHED 6880

D:\LianXi\AYKJ>adb start-server

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
could not read ok from ADB Server

D:\LianXi\AYKJ>netstat -nao | findstr "5037"
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 2432

D:\LianXi\AYKJ>tasklist /fi "PID eq 2432"

映像名称 PID 会话名 会话# 内存使用
========================= ======== ================ =========== ============
adb.exe 2432 Console 1 6,812 K

D:\LianXi\AYKJ>netstat -nao | findstr "5037"
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 2432

D:\LianXi\AYKJ>netstat -nao | findstr "5037"
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 2432

D:\LianXi\AYKJ>netstat -nao | findstr "5037"
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 2432

根据进程id2432,找到相关进程并kill(window下进入任务管理器杀死),

上一篇 下一篇

猜你喜欢

热点阅读