<code>blocks to be highlighted.
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. Download and Install Tomcat. UNZIP (right-click ⇒ Extract All) the downloaded file.
In this article, I will explain you how to install and run Apache Tomcat on macOS 10.14 Mojave. If you want to read more about Apache Tomcat, you can do so on their website or on Wikipedia.
Tomcat 9.x requires Java 8 or later.
You can verify if you have Java and what version, by running the following command in your terminal:
Tomcat Download Mac
If you do not Java installed, or below version 8, you can use Homebrew to install Java on your Mac, or update to a higher version.
Installing Tomcat: step by step
- Download a binary distribution of the core module
apache-tomcat-9.0.12from this page in your Downloads folder. For example the
tar.gzunder the Core section;
- Open/unarchive the archive. Notice that a new folder structure in your Downloads folder is created:
- Open terminal and move the unarchived distribution to
/usr/local, by running the following commands:
- Think ahead! There will be future releases. So we are going to create a symbolic link that will refer to Tomcat, by running the following commands in terminal:
- Change the owner of the
/Library/Tomcatdirectory, by running the following command:
- Make all scripts executable:
Once you have successfully installed Tomcat, you can run it:
Apache Tomcat Macos
By default, you can acces Tomcat in your web by going to
Tomcat Macos X
You can shutdown Tomcat with: