Skip to content

Instantly share code, notes, and snippets.

@RupGautam
Last active December 14, 2015 23:21
Show Gist options
  • Select an option

  • Save RupGautam/6e1b79ce390f43111829 to your computer and use it in GitHub Desktop.

Select an option

Save RupGautam/6e1b79ce390f43111829 to your computer and use it in GitHub Desktop.
MAMP Server Command Line Tools
#MAMP Server Command Line Tools
Add these four lines to ```.bashrc``` or ```.zshrc```
```alias mamp-stop="sudo /Applications/MAMP/bin/startApache.sh"```
```alias mamp-start="sudo /Applications/MAMP/bin/stopApache.sh" ```
```alias mamp-mysql-start="sudo /Applications/MAMP/bin/startMysql.sh"```
```alias mamp-mysql-stop="sudo /Applications/MAMP/bin/stopMysql.sh"```
# After adding these lines.
###### You can run
``` RupGautam@Rup-iMac ~ mamp-start ``` *starting apache*
```RupGautam@Rup-iMac ~ mamp-stop ``` *stopping apache*
```RupGautam@Rup-iMac ~ mamp-mysql-start ``` *starting mysql*
```RupGautam@Rup-iMac ~ mamp-mysql-stop ``` *stopping mysql*
# If you have MAMP PRO >> [Pastebin script](http://pastebin.com/avn0BFap)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment