新手区 [端口被占用]appium 无法启动

小木 · 2014年07月30日 · 最后由 小木 回复于 2014年07月31日 · 2138 次阅读

Mac 系统,用 appium 客户端启动 无法启动测试 然后点击诊断报错:

error: uncaughtException: listen EADDRINUSE date=Wed Jul 30 2014 17:33:26 GMT+0800 (CST), pid=12310, uid=501, gid=20, cwd=/Applications/Appium.app/Contents/Resources/node_modules/appium, execPath=/Applications/Appium.app/Contents/Resources/node/bin/node, version=v0.10.29, argv=[/Applications/Appium.app/Contents/Resources/node/bin/node, /Applications/Appium.app/Contents/Resources/node_modules/appium/bin/appium-doctor.js, --port, 4722], rss=38752256, heapTotal=30119424, heapUsed=10046472, loadavg=[1.53662109375, 1.6171875, 1.666015625], uptime=23645, trace=[column=11, file=net.js, function=errnoException, line=904, method=null, native=false, column=14, file=net.js, function=Server._listen2, line=1042, method=_listen2, native=false, column=10, file=net.js, function=listen, line=1064, method=null, native=false, column=5, file=net.js, function=Server.listen, line=1138, method=listen, native=false, column=9, file=/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/socket.io/lib/index.js, function=Server.listen.Server.attach, line=213, method=listen.Server.attach, native=false, column=17, file=/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/socket.io/lib/index.js, function=new Server, line=51, method=null, native=false, column=41, file=/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/socket.io/lib/index.js, function=Function.Server, line=39, method=Server, native=false, column=24, file=/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/doctor/common.js, function=Log.startBroadcast, line=66, method=startBroadcast, native=false, column=9, file=/Applications/Appium.app/Contents/Resources/node_modules/appium/bin/appium-doctor.js, function=, line=105, method=null, native=false, column=26, file=module.js, function=Module._compile, line=456, method=_compile, native=false], stack=[Error: listen EADDRINUSE,     at errnoException (net.js:904:11),     at Server._listen2 (net.js:1042:14),     at listen (net.js:1064:10),     at Server.listen (net.js:1138:5),     at Server.listen.Server.attach (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/socket.io/lib/index.js:213:9),     at new Server (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/socket.io/lib/index.js:51:17),     at Function.Server (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/socket.io/lib/index.js:39:41),     at Log.startBroadcast (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/doctor/common.js:66:24),     at Object.<anonymous> (/Applications/Appium.app/Contents/Resources/node_modules/appium/bin/appium-doctor.js:105:9),     at Module._compile (module.js:456:26)]

用命令行启动:也是报错:

error: Couldn't start Appium REST http interface listener. Requested port is already in use. Please make sure there's no other instance of Appium running already.

求助

我是管理员,我想说同学,你这样的日志都看不懂么?另外发帖请遵守规则!

共收到 4 条回复 时间 点赞

我之前是启动过的 但是今天就一直报错

端口被占用了,在任务管理器里面把 java 占用端口的进程关一下,再启动就可以了。不知道杀哪个进程就重启下机器。

谢谢

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册