Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to stop appium server through command line?

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?

like image 433
Nitish Kumar Avatar asked Nov 28 '22 13:11

Nitish Kumar


2 Answers

Ctrl+c

or

Run pkill -9 -f appium in the Terminal.

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

like image 163
Mike Collins Avatar answered Dec 06 '22 09:12

Mike Collins


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.

like image 37
Ali Rad Avatar answered Dec 06 '22 09:12

Ali Rad