
Installing Tomcat 6.0.20 on OS X
- Make Java 1.5 (or later) the default JRE
- Get the core distribution from http://tomcat.apache.org/ At the time of this writing that would be: apache-tomcat-6.0.20.tar.gz
- Unpacking will create a apache-tomcat-6.0.20 folder, probably on your desktop.
Move this folder into /usr/local, like this:
sudo mv ~/Desktop/apache-tomcat-6.0.20 /usr/local/ - To make it easy to replace this release with future releases, we are going to create a symbolic link that we are going to use when referring to Tomcat:
sudo ln -s /usr/local/apache-tomcat-6.0.20 /Library/Tomcat - Next step is making Tomcat's launch and stop scripts executable:
chmod ug+x /Library/Tomcat/bin/*.sh
- Create startup and shutdown scripts:
Startup:
Open TextEdit and create a startTomcat.command file in your home folder ...
Shutdown:
Open TextEdit and create a stopTomcat.command file in your home folder ...
- Open a Terminal and make both scripts executable:
chmod ug+x ~/startTomcat.commandchmod ug+x ~/stopTomcat.command
- Change ownership of the /Libaray/Tomcat folder hierarchy:
sudo chown -R your_username /Library/Tomcat - Start Tomcat by simply clicking the startTomcat.command icon in your home folder.
Test with http://localhost:8080
Instead of using the start and stop scripts, you may also want to check out activata's Tomcat Controller a tiny freeware app, providing a UI to quickly start/stop Tomcat.