Skip to content

Instantly share code, notes, and snippets.

@spbail
Last active December 18, 2015 00:29
Show Gist options
  • Save spbail/5697464 to your computer and use it in GitHub Desktop.
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.
emacs /Library/Tomcat/conf/tomcat-users.xml
then add to the file:
<role rolename="manager-gui"/>
<user username="myusername" password="mypassword" roles="manager-gui"/>
#!/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