Setting Tomcat on OS X

Download the zip file from the Tomcat site and unzip th…

tomcat

Download the zip file from the Tomcat site and unzip the folder with its whole content, preferably on the root directory (can be anywhere).

Screen Shot 2014-08-25 at 3.43.07 PM

 

 

 

 

 

 

 

Go to the bin folder from terminal and execute the following lines.

To make the sh files executable in the bin folder

$ chmod +x .sh

to start the server

$startup.sh

to stop the server

$shutdown.sh

Screen Shot 2014-08-25 at 4.02.57 PMScreen Shot 2014-08-25 at 4.12.14 PM

By default Tomcat runs in the port 8080. To verify if it is running correctly then in terminal execute

$ sudo lsof -i :8080

Screen Shot 2014-08-25 at 4.20.54 PM