Monday, March 18, 2013

Install instruction for Tomcat 7 on Mac

To install Tomcat 7 you should have Java 1.6+, so make sure version of java on your Mac by using "java --version" command.
Here are the quick steps to install Tomcat 7 on Mac. I believe it may take few minutes to install

1. Download a Core Binary file from here. The link of the binary file looks like this
2.Extract the downloaded binary file tar -xzvf ~/Downloads/apache-tomcat-7.0.37.tar.gz
3.Create or make sure you have local folder.If you don't have it then create it sudo mkdir /usr/local Then move the extracted binary files to /usr/local sudo mv ~/Downloads/apache-tomcat-7.0.37 /usr/local
4.Soft link the installed folder to Mac's library folder. To maintain easily the installed application sudo ln -s /usr/local/apache-tomcat-7.0.37 /Library/Tomcat7
5. Change the ownership and executable permission to application folder sudo chown -R YOUR_MAC_USER_NAME /Library/Tomcat7 sudo chmod +x /Library/Tomcat7/bin/*.sh
6. Installation is done, now you can start/stop the Tomcat7 Service /Library/Tomcat7/bin/ /Library/Tomcat7/bin/
7. Open your browser and type the URL to see welcome message of tomcat7 application server - http://localhost:8080

No comments:

Post a Comment