-
-
Save sosukeinu/925392929526a3d6f2ca to your computer and use it in GitHub Desktop.
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
1) Install MAMP normally | |
2) Download the latest binary of tomcat from http://tomcat.apache.org/ and extract it into the MAMP folder | |
(you should now have a /Applications/MAMP/apache-tomcat-version folder) | |
3) Create a link to the apache-tomcat folder: | |
ln -s /Applications/apache-tomcat-7.0.37/ tomcat | |
4) Make sure all the binaries are executable: | |
cd /Applications/tomcat/bin | |
ls -1 *.sh | xargs chmod +x | |
5) Modify /Applications/MAMP/bin/startApache.sh and add the following to the end: | |
/Applications/MAMP/tomcat/bin/startup.sh | |
6) Modify /Applications/MAMP/bin/stopApache.sh so it reads: | |
# /bin/sh | |
/Applications/MAMP/tomcat/bin/shutdown.sh | |
/Applications/MAMP/Library/bin/apachectl stop | |
sleep 2 | |
kill -TERM ps aux | grep [t]omcat | awk '{ print $2}' | |
sleep 1 | |
kill -9 ps aux | grep [t]omcat | awk '{ print $2}' | |
Done! | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment