Install Tomcat

Requirements

Tip

To check your current Java version, open a Terminal and run java -version.

On Mac OS

Steps

  1. Download a binary distribution of the core module: apache-tomcat-8.0.26.tar.gz from here.

  2. Move the unarchived distribution to /usr/local.

    sudo mkdir -p /usr/local
    sudo mv ~/Downloads/apache-tomcat-8.0.26 /usr/local
    

    Tip

    To make it easy to replace this release with future releases, create a symbolic link that you are going to use when referring to Tomcat (after removing the old link you might have from installing a previous version):

    sudo rm -f /Library/Tomcat
    sudo ln -s /usr/local/apache-tomcat-8.0.26 /Library/Tomcat
    
  3. Change ownership of the /Library/Tomcat folder hierarchy:

    sudo chown -R <your_username> /Library/Tomcat
    
  4. Make all scripts executable:

    sudo chmod +x /Library/Tomcat/bin/*.sh
    
  5. Start the Tomcat server.

    ./startup.sh
    

    The Tomcat default page appears at http://localhost:7200.

  6. Stop the Tomcat server:

    ./shutdown.sh
    

On Windows

Check the Tomcat Documentation.