Menu

Category

Installing Apache Tomcat on MacOS Mojave using Homebrew

November 20, 2019
Installing Apache Tomcat on MacOS Mojave using Homebrew

In order to install Apache Tomcat on MacOS, we firstly need to install Java Development Kit(JDK). To check if java installed, open up the terminal and run the following command:

java -version

If the JDK is not installed, then you will be prompted with the following message

No Java runtime present, requesting install.

On the other hand, if JDK is installed, you will be promoted a message which will look similar to the following:

openjdk version “12.0.2” 2019–07–16
OpenJDK Runtime Environment (build 12.0.2+10)
OpenJDK 64-Bit Server VM (build 12.0.2+10, mixed mode, sharing)

Installing JDK on Mac OS using Homebrew

(If JDK is installed on your system, then please skip to the next section.)

Please make sure Homebrew package manager is installed on your system. For instructions to install Homebrew please read the official documentation here.

Step 1: Install Homebrew Cask

Homebrew Cask extends Homebrew and allows you to install large binary files via the Mac terminal. JDK can be installed onto your Mac using Homebrew Cask.

In order to install Homebrew Cask, please type in the following commands onto the terminal sequentially

brew update
brew tap caskroom/cask

Step 2: Install JDK with Homebrew Cask

Run the following command to install the latest version of JDK onto your system:

brew cask install java 

Now, please check if Java is installed on your system by running the following command:

java -version

You will be promoted a message which will look similar to the following:

openjdk version “12.0.2” 2019–07–16
OpenJDK Runtime Environment (build 12.0.2+10)
OpenJDK 64-Bit Server VM (build 12.0.2+10, mixed mode, sharing)

Installing and Running Apache Tomcat on Mac OS using Homebrew

Step 1: Install Apache Tomcat

Run the following commands on the terminal in order to install Apache Tomcat:

brew update
brew install tomcat

Step 2: Run Apache Tomcat

Apache Tomcat can be run on Mac OS in two separate ways.

1. Start Tomcat automatically at Mac Login:

brew services start tomcat

In order to stop Tomcat to start automatically at Mac Login:

brew services stop tomcat

2. Start Tomcat manually:

catalina start

In order to stop Tomcat manually:

catalina stop

To view available options on Tomcat run:

catalina -h

Thats it!

I hope this article has been to some aid to you. Would really love to hear from you!

Fahim Hossain

Fahim Hossain

I am the founder and CEO of ARITS Limited - a well reputed Software Development Company in Bangladesh. I believe there is a lot to learn and master in the diverse field of software engineering. Hence, I try to focus on the development of challenging, aesthetically pleasing, and high performance software solutions to keep up with the pace.

Please leave your feedback “Installing Apache Tomcat on MacOS Mojave using Homebrew

battle arena toshinden 2 ps1 rom

Simply wish to say your article is as amazing. The clarity to your publish is just great and that i could think you are an expert in this subject. Well along with your permission let me to snatch your feed to keep updated with imminent post. Thank you 1,000,000 and please carry on the gratifying work.| а

Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll
Advancing Through Technology
Ground Floor • House 375 • Lane 6W
Baridhara DOHS • Dhaka • 1206 • Bangladesh
Email : contact@aritsltd.com
Call: ‭+880 19 0519 9835
Automation • Robotics • Information • Technology • Solutions
© 2019 ARITS Limited • Advancing Through Technology
All rights reserved.