首页 > 解决方案 > 无法从 cmd 启动 Appium

问题描述

我使用appium-desktop-setup-1.8.2

在 Windows 上,我使用以下选项从控制台启动它:

appium
appium -p 4724
start appium

但我只打开了 Appium 启动窗口。Appium 不会自动启动。它必须手动运行。

我究竟做错了什么?

我不明白这个回复:

C:\Program Files (x86)\Appium>appium -U 0b36774b032fbdba -p 4724

C:\Program Files (x86)\Appium>
Warning: Accessing PropTypes via the main React package is deprecated, and will be removed in  React v16.0. Use the latest available v15.* prop-types package from npm instead. For info on usage, compatibility, migration and more, see https://github.com/facebook/prop-types#prop-types
Warning: Accessing createClass via the main React package is deprecated, and will be removed in React v16.0. Use a plain JavaScript class instead. If you're not yet ready to migrate, create-react-class v15.* is available on npm as a temporary, drop-in replacement. For more info see https://github.com/facebook/prop-types#prop-types
(node:10212) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

标签: appium

解决方案


要启动 appium 服务器,您可以使用

appium -a 127.0.0.1 -p 4723

确保端口 4723 未被任何其他进程使用。检查使用

netstat –aon | find "4723"

您可以从上面的代码中找到 processId。终止进程:

taskkill /F /pid processID

然后你可以使用appium -a 127.0.0.1 -p 4723来启动 appium 服务器。


推荐阅读