Last active
December 18, 2015 00:29
-
-
Save spbail/5697464 to your computer and use it in GitHub Desktop.
Install Tomcat (6) on Mac OS X (used this one on a Mac Mini running Lion but I presume it should work on others as well). Last line starts up the server.
This file contains 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
emacs /Library/Tomcat/conf/tomcat-users.xml | |
then add to the file: | |
<role rolename="manager-gui"/> | |
<user username="myusername" password="mypassword" roles="manager-gui"/> | |
This file contains 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
#!/bin/sh | |
cd Downloads | |
curl -OL http://apache.mirror.anlx.net/tomcat/tomcat-6/v6.0.37/bin/apache-tomcat-6.0.37.tar.gz | |
tar -zxvf apache-tomcat-6.0.37.tar.gz | |
sudo mkdir -p /usr/local/ | |
sudo mv apache-tomcat-6.0.37 /usr/local/ | |
sudo rm -rf /Library/Tomcat/ | |
sudo ln -s /usr/local/apache-tomcat-6.0.37/ /Library/Tomcat | |
sudo chown -R owl /Library/Tomcat | |
sudo chmod +x /Library/Tomcat/bin/*.sh | |
/Library/Tomcat/bin/startup.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment