邢台营销型网站建设,用dw做网站的空格怎么打,天津营销网站建设,网站建设一站式原本是想跑monkey测试的#xff0c;可使用adb命令时提示#xff1a;adb server is out of date. killing...出现这个问题的原因是#xff1a;adb使用的端口5037被占用了。下面我们说下如何找到是哪个程序占用了这个端口#xff0c;顺便看看cmd里面的一些类似linux的进程操作…原本是想跑monkey测试的可使用adb命令时提示adb server is out of date. killing...出现这个问题的原因是adb使用的端口5037被占用了。下面我们说下如何找到是哪个程序占用了这个端口顺便看看cmd里面的一些类似linux的进程操作。1.错误信息c:\users\adminadb shell monkey -helpadb server is out of date. killing...adb server didnt ack* failed to start daemon *error: unknown host service2. 原因adb的端口(5037)被占用了。至于这个5037端口可以参考本博客另外 一篇文章在这个文章里详细说明了adb的原理及其源码分析。3. 解决办法(1)查看adb的端口号是多少 adb nodaemon serverc:\users\adminadb nodaemon servercannot bind tcp:5037提示无法绑定5037端口(2)查找5037端口占用的进程 netstat -ano | findstr 5037c:\users\adminnetstat -ano | findstr 5037tcp 127.0.0.1:5037 0.0.0.0:0 listening 10760tcp 127.0.0.1:5037 127.0.0.1:53437 time_wait 0tcp 127.0.0.1:5037 127.0.0.1:53440 time_wait 0tcp 127.0.0.1:5037 127.0.0.1:53445 time_wait 0(3)找到占用端口进程对应的应用程序 tasklist | findstr 10760c:\users\admintasklist | findstr 10760ppadbserver.exe 10760 console 1 6,044 k(4)此时有2个方法杀死进程方法1通过任务管理器进程中找到ppadbserver.exe 结束进程即可。此方法省事高效。如果想多学习cmd命令可以用下面方法方法2taskkill /f /pid 10760c:\users\admintaskkill /f /pid 10760成功: 已终止 pid 为 10760 的进程。4. 重现启动adbc:\users\adminadb shell monkey -helpusage: monkey [-p allowed_package [-p allowed_package] ...][-c main_category [-c main_category] ...][--ignore-crashes] [--ignore-timeouts][--ignore-security-exceptions][--monitor-native-crashes] [--ignore-native-crashes][--kill-process-after-error] [--hprof]参考文档https://blog.csdn.net/liranke/article/details/42524851