how to stop appium server through command line?

旧巷老猫 提交于 2019-12-11 01:29:06

问题


The command I'm using to start the Appium server:

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

How would I stop the server through command line?


回答1:


Ctrl+c

or

  1. Run ps -A | grep appium
  2. Note the process ID
  3. Run kill [process ID]

If you're looking to do this programmatically, see http://discuss.appium.io/t/launching-and-stopping-appium-server-programmtically/700.




回答2:


If you have a lot of instances of appium running and don't want to stop them one at a time then try the following command it will close all of htem at once:

/usr/bin/killall -KILL node

run ps -A | grep appium to see how many processes are there and if there are too many then the command aobve comes to had.



来源:https://stackoverflow.com/questions/47313420/how-to-stop-appium-server-through-command-line

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!