Install Apache Tomcat ver 8 on Mac OS X Yosemite 10.10


Posted on : Fri, 8th May 15 07:08 am UTC
100+ votes

In order to Install Apache Tomcat version 8.x.x (Supports Servlet 3.1 specifications) on your Mac OS X running Yosemite OS 10.10.x you must have java version 7 or later installed on your Mac.

How to check your java version installed :

  1. Go to Terminal
  2. Run command : java -version
  3. If it is less than 1.8, download and install java8 : http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
bash-3.2$ java -version

java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

bash-3.2$ 

Installing Tomcat 8.0.22

  1. Download the latest tomcat binary from : https://tomcat.apache.org/download-80.cgi (apache-tomcat-8.0.22.tar.gz)
  2. Extract the files to any directory you prefer.
  3. Open Terminal and move to bin directory location where you have extracted apache binaries.
  4. Run the command ./startup.sh to start the apache server.
    bash-3.2$ ./startup.sh 
    Using CATALINA_BASE:   /Users/c2c/Setups/apache-tomcat-8.0.22
    Using CATALINA_HOME:   /Users/c2c/Setups/apache-tomcat-8.0.22
    Using CATALINA_TMPDIR: /Users/c2c/Setups/apache-tomcat-8.0.22/temp
    Using JRE_HOME:        /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home
    Using CLASSPATH:       /Users/c2c/Setups/apache-tomcat-8.0.22/bin/bootstrap.jar:/Users/c2c/Setups/apache-tomcat-8.0.22/bin/tomcat-juli.jar
    Tomcat started.
    bash-3.2$ 
    
  5. Now open any browser and open address : http://localhost:8080, you must see the should see "If you're seeing this, you've successfully installed Tomcat. Congratulations!" page.

    Successfully installed tomcat page


    Successfully installed tomcat page



  6. To stop the server you can use command ./shutdown.sh
    bash-3.2$ ./shutdown.sh 
    Using CATALINA_BASE:   /Users/c2c/Setups/apache-tomcat-8.0.22
    Using CATALINA_HOME:   /Users/c2c/Setups/apache-tomcat-8.0.22
    Using CATALINA_TMPDIR: /Users/c2c/Setups/apache-tomcat-8.0.22/temp
    Using JRE_HOME:        /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home
    Using CLASSPATH:       /Users/c2c/Setups/apache-tomcat-8.0.22/bin/bootstrap.jar:/Users/c2c/Setups/apache-tomcat-8.0.22/bin/tomcat-juli.jar
    bash-3.2$ 

Apache Tomcat 8.0.22 Specifications

Code2care's mission is to share varied knowledge in technical and non-technical areas gathered during day-to-day learnings and development activities so that our visitors can leverage this portal to find solutions to their queries without re-inventing the wheel. Technical posts include Learnings, Tutorials, Video Tutorials, Code Snippets, Tips-n-tricks.

We are operating with a limited resources due to COVID-19 - Stay Safe!

Follow us : Facebook - Twitter - Google +