【问题标题】:how to stop appium server through command line?如何通过命令行停止appium服务器?
【发布时间】:2018-04-29 00:47:30
【问题描述】:

我用来启动 Appium 服务器的命令:

node appium --address 127.0.0.1 --port 4723 --session-override --no-reset --platform-name Android --platform-version 23 --automation-name Appium

如何通过命令行停止服务器?

【问题讨论】:

  • 您是要手动还是以编程方式执行此操作?

标签: selenium testing automation appium appium-android


【解决方案1】:

Ctrl+c

  1. 运行ps -A | grep appium
  2. 记下进程 ID
  3. 运行kill [process ID]

如果您希望以编程方式执行此操作,请参阅 http://discuss.appium.io/t/launching-and-stopping-appium-server-programmtically/700

【讨论】:

    【解决方案2】:

    如果您有很多 appium 实例正在运行并且不想一次停止它们,请尝试以下命令,它会立即关闭所有 htem:

    /usr/bin/killall -KILL node

    运行ps -A | grep appium 以查看有多少进程,如果有太多则执行 aobve 命令。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-11-28
      • 2019-11-26
      • 2016-11-17
      • 1970-01-01
      • 2022-01-10
      • 1970-01-01
      • 2016-12-10
      相关资源
      最近更新 更多