通过 appium 和命令启动 appium 服务器或仅使用 appium 之间有什么区别
Is there any difference between start appium server via appium & command or using just appium
自从我使用 npm 安装 appium 以来,我可以通过命令行使用以下命令通过命令行启动 appium 服务器。
appium &
appium
//To change the default port
appium & --port 9090
appium --port 9090
据我观察,这两个命令的作用相同,那么它们是相同的还是有任何区别?
appium &
appium &
运行子中的 Appiumshell。
后果:
- 您无法轻易退出该 Appium 会话(例如
control + c
。
- 由于您无法退出它们,因此您必须关闭整个终端才能关闭会话,这样您可能 运行 会遇到更多类似这样的错误:
Could not start REST http interface listener. The requested port may already be in use. Please make sure there is no other instance of this server running already.
Fatal Error: listen EADDRINUSE 127.0.0.1:4723
这就是我建议不要在本地执行此操作的原因。 (我认为 CI 这很好)
appium
appium
运行 终端会话中的 Appium,本质上是 "locks" 到那个 shell 的过程。这使得您可以轻松 control + c
退出 MacOS 上的程序。我在当地推荐这个。
自从我使用 npm 安装 appium 以来,我可以通过命令行使用以下命令通过命令行启动 appium 服务器。
appium &
appium
//To change the default port
appium & --port 9090
appium --port 9090
据我观察,这两个命令的作用相同,那么它们是相同的还是有任何区别?
appium &
appium &
运行子中的 Appiumshell。
后果:
- 您无法轻易退出该 Appium 会话(例如
control + c
。 - 由于您无法退出它们,因此您必须关闭整个终端才能关闭会话,这样您可能 运行 会遇到更多类似这样的错误:
Could not start REST http interface listener. The requested port may already be in use. Please make sure there is no other instance of this server running already.
Fatal Error: listen EADDRINUSE 127.0.0.1:4723
这就是我建议不要在本地执行此操作的原因。 (我认为 CI 这很好)
appium
appium
运行 终端会话中的 Appium,本质上是 "locks" 到那个 shell 的过程。这使得您可以轻松 control + c
退出 MacOS 上的程序。我在当地推荐这个。