Install TomCat 7 on Mac Os X – the easy way
Published on December 29, 2012
The first time I’ve attempted to install Tomcat on my Mac, it’s been such a long and frustrating experience that now it seems almost impossible that I’ve spent so much time for such an easy task.
Probably it’s true that evrything’s easy when you know the answer, but I think I can update this blog after so very long to document how easy it really is, hoping it can help someone in the future.
- First, check if Java is installed on your Mac. Open the terminal and type just: java. If you get a prompt on the screen, install it; otherwise, you’ll read a long text on the terminal: just ignore it and skip to step 2.
- Download tomcat, unzip it and rename the main folder just “tomcat”.
- Open the finder, type shift+command+G. Go to folder will be prompted. Type /usr/local. If the folder doesn’t exist, type just /usr and then create the local folder.
- When you’re done, drag and the drop in the /usr/local folder the tomcat folder you’ve just extracted (see step 2).
- Reopen the terminal and type: sudo chown -R <insert_your_username> /usr/local/tomcat. Of course replace <insert_your_username> with your actual username as prompted in the terminal.
- Again in the terminal type sudo chmod +x /usr/local/tomcat/bin/*.sh
- Done! Just to be faster, you can download the Tomcat controller to start and stop it easier.
It takes more to write it than to do it.