In order to Install Apache Tomcat version 8.x.x (Supports Servlet 3.1 specifications) on your Mac OS X (macOS) 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 :- Go to Terminal
- Run command: java -version
- 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
- Download the latest tomcat binary from : https://tomcat.apache.org/download-80.cgi (apache-tomcat-8.0.22.tar.gz)
- Extract the files to any directory you prefer.
- Open Terminal and move to bin directory location where you have extracted apache binaries.
- Run the command ./startup.sh to start the apache server.
- 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.
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$
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$
- Servlet Spec: 3.1
- JSP Spec: 2.3
- EL Spec: 3.0
- WebSocket Spec: 1.1
- Java Support: 7 or later
More Posts related to Mac-OS-X,
- Location of eclipse.ini file on Mac OS X
- How to enable Do Not Disturb mode for Notification Center in Mac OS X 10.10 Yosemite
- Save webpage as pdf in Google Chrome for Mac OS X
- Spell check not working in Gmail : Mac OS X
- [Mac] To open Eclipse you need to install the legacy java se 6 runtime
- Mac OS X Error: Could not create the Java Virtual Machine
- Transfer files between Android and Mac OS X using usb cable
- Mac Studio Display Buzzing sound from the Monitor
- Kill or force quit stuck application or process in Mac OS X
- Take Screenshot on Mac OS X (Keyboard Shortcuts)
- vi undo redo command [Examples]
- Spotlight Search file path location on Mac OS X Mavericks or Yosemite
- Find Java JRE Installation location Mac OS X
- Take Screenshots on Mac OS without Keyboard
- How to See Hidden Folders and Files on macOS
- How to Setup maven on Mac (macOS)
- osascript wants to make changes while Android Studio Installation on Mac OS X
- Remove Applications from Startup Mac OS X
- Have you noticed MacOS Ventura About this Mac look like Mac OS X
- Find the location of Spotlight searched file
- Mac OS X Taking Screen Capture using Terminal
- Safari appends .html extension to files that are downloaded
- Open New tab using keyboard shortcut in Mac Terminal
- Mac OS X Stuck During Booting Gray Screen Logo and Spinner
- Disable Chrome Notification bell from Mac OS X menu bar
More Posts:
- Configure AWS Access ID and Secret Keys using CLI on Mac - AWS
- [Solutions] Android Error in an XML file: aborting build. Eclipse SDK - Android
- How to connect to Microsoft Exchange Online using PowerShell - Powershell
- How to use Autocomplete and Autosuggestion in Shell Commands - Bash
- 16: Find the largest element in a List - 1000+ Python Programs - Python-Programs
- How to reset Eclipse IDE Code Font - Eclipse
- How to create SharePoint List Item programmatically using C#.net - SharePoint
- Docker MySQL Compose File with Volume Example - Docker