查找被占用端口的方法

C:\Users\ceshi> netstat -aon|findstr "5037"
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 6600
TCP 127.0.0.1:5037 127.0.0.1:52542 ESTABLISHED 6600
TCP 127.0.0.1:5037 127.0.0.1:52545 ESTABLISHED 6600
TCP 127.0.0.1:52542 127.0.0.1:5037 ESTABLISHED 1080
TCP 127.0.0.1:52545 127.0.0.1:5037 ESTABLISHED 4240

C:\Users\ceshi> tasklist|findstr "1080"
adb.exe 1080 Console 1 5,072 K

C:\Users\ceshi> tasklist|findstr "4240"
adb.exe 4240 Console 1 5,212 K

C:\Users\ceshi> tasklist|findstr "6600"
adb.exe 6600 Console 1 7,116 K

C:\Users\ceshi>taskkill /f /t /im adb.exe
成功: 已终止 PID 2764 (属于 PID 1080 子进程)的进程。
成功: 已终止 PID 7144 (属于 PID 4240 子进程)的进程。
成功: 已终止 PID 6600 (属于 PID 7828 子进程)的进程。
成功: 已终止 PID 1080 (属于 PID 6396 子进程)的进程。
成功: 已终止 PID 4240 (属于 PID 6396 子进程)的进程。

C:\Users\ceshi>netstat -aon|findstr "5037"
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 2748
TCP 127.0.0.1:5037 127.0.0.1:53058 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:53065 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:53066 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:53067 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:53068 ESTABLISHED 2748
TCP 127.0.0.1:5037 127.0.0.1:53071 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:53072 ESTABLISHED 2748
TCP 127.0.0.1:53068 127.0.0.1:5037 ESTABLISHED 7992
TCP 127.0.0.1:53072 127.0.0.1:5037 ESTABLISHED 6020

C:\Users\ceshi>taskkill /f /t /im adb.exe

com.xgh.remindertable
sdk\build-tools\android-4.4W>aapt dump xmltree 123.apk AndroidManifest.xml
adb shell monkey -p com.xgh.remindertable -v 500
https://github.com/googlesamples samples

del *.ydb /f /s /q /a

del *.ybk /f /s /q /a

 

转载于:https://www.cnblogs.com/51testing/p/7799511.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值