Print

Installing Tomcat 6.0.18 on OS X
  1. Make Java 1.5 (or later) the default JRE
  2. Get the core distribution from http://tomcat.apache.org/ At the time of this writing that would be: apache-tomcat-6.0.18.tar.gz
  3. Unpacking will create a apache-tomcat-6.0.18 folder, probably on your desktop. Move this folder into /usr/local, like this:

    sudo mv ~/Desktop/apache-tomcat-6.0.18 /usr/local
  4. 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 revering to Tomcat:

    sudo ln -s /usr/local/apache-tomcat-6.0.18 /Library/Tomcat
  5. Next step is making Tomcat's launch and stop scripts executable:
    chmod ug+x /Library/Tomcat/bin/*.sh
Tomcat
  • 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.command
    • chmod 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.