How start & stop MAMP PRO using command line?

Jenil Gogari picture Jenil Gogari · Jul 10, 2013 · Viewed 51.2k times · Source

I am trying to find a way by which I can start and stop MAMP PRO's Apache and mysql using command line. So far whatever I have search has only helped me start MAMP PRO.

Thanks.

Answer

miguelcaires picture miguelcaires · Jul 19, 2013

As of at least MAMP 3.0.6, the following works for both Free and Pro versions:

Open MAMP Pro or Free, depending on the one you use:

Pro: open /Applications/MAMP\ PRO/MAMP\ PRO.app/

Free: open /Applications/MAMP/MAMP.app/

Then, cd into MAMP/bin:

cd /Applications/MAMP/bin

To start Apache & MySQL:

./start.sh

To stop Apache & MySQL:

./stop.sh

Note that you might need to sudo the commands above.