问题
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
- Run
ps -A | grep appium
- Note the process ID
- 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