2017-03-15 176 views
0

我是Appium的新手。我不能夠啓動Appium節點服務器由於以下錯誤無法啓動appium節點服務器

Launching Appium server with command: C:\Program Files (x86)\Appium\node.exe lib\server\main.js --address 127.0.0.1 --port 4723 --platform-name Android --platform-version 23 --automation-name Appium --log-no-color 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.

Appium server process ended

的解決方案,我就發現了計算器,(殺node.exe從任務管理器)對我不起作用,因爲我沒有找到任何節點.exe那裏。 任何幫助,將不勝感激。謝謝。

+0

殺死node.exe後,你得到相同的錯誤或不同的? –

+0

同樣的錯誤,實際上我在任務管理器的進程下找不到任何node.exe。 –

回答

0

該消息告訴您(TCP)端口(4723)已經有一些進程正在偵聽它。在一個給定的端口上同時監聽多個進程是不可能的。您需要查找在該端口上偵聽的進程並終止它,或者爲您的appium服務器選擇不同的端口。

因爲你在Windows上,所以你會發現它會有點不同。 (我使用shell命令netstat -anp | fgrep 4723

+0

@Prasan這將幫助你殺死端口.http://therealan/announce/blog/2015/04/16/windows-kill-process-by-port-number –

+0

@arulchristopher我試過這個,並得到錯誤:進程找不到「11996」。其中11996是端口4723的PID –

+0

@Prasan https://support.microsoft.com/zh-cn/help/2798040/you-cannot-stop-a-process-by-using-the-taskkill.exe -utility在Windows中,你可以檢查這個以確保操作系統已經修復taskkill ... –

0

啓動Appium時使用會話覆蓋標誌,以便您不需要每次都終止進程。示例命令 -

appium -a 127.0.0.1 -p 4723 --session-override