Last active
December 14, 2015 23:21
-
-
Save RupGautam/6e1b79ce390f43111829 to your computer and use it in GitHub Desktop.
MAMP Server Command Line Tools
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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