Thursday, October 9, 2014

Install Tomcat 8 On MacOS

Introduction

I have been using Tomcat on and off for the last 10 years. It is a great application server with respect to easy use and functionality. As I am developping an AngularJS project, I decided to use Tomcat as my server platform. This blog is to describe how to install the newly available Tomcat on MacOS.

Currently I am using OSX 10.9.5, as show in the figure below

Downlaod

The download site is at http://tomcat.apache.org/download-80.cgi

After download, you should verify MD5 signature by:
[/Users/Gary2013/Tomcat]$ md5 ~/Downloads/apache-tomcat-8.0.14.tar.gz 
MD5 (/Users/Gary2013/Downloads/apache-tomcat-8.0.14.tar.gz) = 96063b1e477869e8ff4801d777e8915b

Now copy the MD5 signature from apache tomcat's web site and compare the string. Here the script I used:

if [[ 96063b1e477869e8ff4801d777e8915b == 96063b1e477869e8ff4801d777e8915b ]] ; then echo "OK No Problem"; else echo "Wrong File"; fi

Install Tomcat

Now, execute the following procedures:
cd ~
mkdir Tomcat
cd $_
tar -zvxf ~/Downloads/apache-tomcat-8.0.14.tar.gz 
cd apache-tomcat-8.0.14/bin
./startup.sh
Now the tomcat is started. You can check the log file at $INSTALL_DIR/logs/catalina.out. And you can also use web browser to verify if you can load the tomcat's home page at http://localhost:8080.

1 comment:

  1. I wanted to thank you for
    your time just for this wonderful read!! check my blog

    ReplyDelete

Anypoint Studio Error: The project is missing Munit lIbrary to run tests

Anypoint Studio 7.9 has a bug. Even if we following the article: https://help.mulesoft.com/s/article/The-project-is-missing-MUnit-libraries-...