Thursday 8 October 2015

Installing Apache Tomcat on MAC OSx


Apache Tomcat is one of the most used web server.
Installing Apache Tomcat on MAC is as simple at it can be.
All you need is to download it from Apache Website.
Here we are downloading Apache Tomcat 8.0 version link to 
the tar.gz is provided here.









http://www.us.apache.org/dist/tomcat/tomcat-8/v8.0.27/bin/apache-tomcat-8.0.27.tar.gz
download this and extract it. The best place to extract is /opt/.

Create a directory called Tomcat8.0 on /opt/ and extract it there. You are all ready.

To start the service manually navigate to this directory. /opt/Tomcat8.0/bin/startup.sh
and to shutdown manually /opt/Tomcat8.0/bin/shutdown.sh

To configure Tomcat to automatically start service at boot, configure launchd_wrapper.sh
or org.apache.tomcat.plist. Here is the github link for configuration of both the script.
https://gist.github.com/mystix/661713.

Remember the default port is 8080. You can change server.xml to change port number for 
both normal and SSL (https) connection. BY default for http it is 8080 and for https it 
is 8443.

No comments: