Installing Tomcat 9 on Mac OS X El Capitan is actually quite easy.The Mac OS X installation process is fairly painless and straight forward, but there are a few rough spots along the way. Follow these step by step instructions to get Tomcat up and running on your Mac OS X machine in no time. Configure Environment Variables Prerequisite: JavaDownload and install the latest Java 8u92 form.The JDK installer package come in an dmg and installs easily on the Mac; and after opening the Terminal app again,java -versionNow shows something like this:java version '1.8.066'Java(TM) SE Runtime Environment (build 1.8.066-b17)Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)Whatever you do, when opening Terminal and running java -version, you should see something like this, with a version of at least 1.7.x I.e. Tomcat 9.x requires Java 7 or later.JAVAHOME is an important environment variable, not just for Tomcat, and it’s important to get it right.To set the JAVAHOME variable, open a new Terminal window and use the following command to open the system profile for editing.
![]()
(You can substitute your favorite text editor. We like Vim.):vi /.profileOnce you’ve opened the profile, add the following lines to set the JAVAHOME and CATALINAHOME variables:export JAVAHOME=/Library/Java/Homeexport CATALINAHOME=/Path/To/Tomcat/Home Installing Tomcat1. Download Tomcat from the official website (tomcat.apache.org), select Tar.gz format under the Core section2. Extract the Tomcat to directory: /Library, in order to facilitate the use, rename the folder to 'Tomcat'3. Open Terminal, modify folder permissionssudo chmod 755 /Library/Tomcat/bin/.sh4. Press the Enter key, then you will be prompted for a password, enter the administrator password.
![]()
Then continue with the following command to open the tomcat servicesudo sh startup.sh5. Open the browser and enter press Enter.If you see the Apache Tomcat, this means Tomcat has successfully runThat is it!
Apache Tomcat is an open source software implementation of the Java Servlet and JavaServer Pages technologies. Apache Tomcat is developed in an open and participatory environment and released under the Apache License version. Apache Tomcat is intended to be a collaboration of the best-of-breed developers from around the world. Also known as: tomcat@9. Implementation of Java Servlet and JavaServer Pages. /api/formula/tomcat.json (JSON API).
You should now be able to access Apache Tomcat’s welcome page on If you wish to make stopping Tomcat 9, use this command:sudo sh /Library/Tomcat/bin/shutdown.sh.
![]() Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |