Tomcat 7 Download Mac Os X Updated
Tomcat 7 Download Mac Os X
I've fabricated the switch over to Apple on my development machines and every bit I'm starting my new company shortly I've got myself a new MacBook Pro machine of which I volition be transporting to and from the office then I've been installing my entire evolution on it and idea I'd blog about how to fix-upwards Tomcat 7 on MacOSX to use as a evolution surroundings… Information technology's rather straight forward simply idea I'd post it up anyway to assistance others!
Tomcat vii is the outset release of Tomcat to support the Servlet 3.0, EL 2.two and JSP 2.2 specifications.
Tomcat 7 requires Coffee 1.6 to exist installed on your Apple Mac based computer, if your running Leopard (10.v) or Snow Leopard (10.6) you are good to get already equally these versions of OSX comes pre-installed with Java, however users of OSX Lion (ten.7) and more probable Mountain Lion (ten.viii) will need to enable Java of which I'll now explain how to practice so, if your not using Lion or Mountain Panthera leo you can skips to the primary install notes at present!
Enabling Java on OSX Lion and OSX Mountain Lion
You lot can enable and install Java on Lion and Mountain Lion using the post-obit guide:http://helpx.adobe.com/x-productkb/global/install-java-jre-mac-os.html
You tin likewise bank check (to exist on the safe side) your version of Java that you have installed on your machine past running the post-obit control from the final:-
java -version
Installing Tomcat 7 on your Mac
i) First step is to download Tomcat from the Apache Tomcat website or which can be found here:http://tomcat.apache.org/download-70.cgi, Scroll downwards to the 'Binary distrubutions' section and download the '.tar.gz' file. At the time of writing the version I downloaded and installed was 7.0.29
two) Opening or un-archiving the download will now create a new binder – more than than likely this volition be in your downloads binder unless you choose a different folder to download the file to.
3) Our next footstep is to 'move' the extracted folder to a system location of which we will run Tomcat from, we do this like so (obviously change your version number/download directory to suite your requirements):-
sudo mkdir /usr/local sudo mv ~/Downloads/apache-tomcat-seven.0.29 /usr/local
To brand information technology like shooting fish in a barrel to switch and upgrade Tomcat versions in future we'll use a symbolic link to alias the tomcat binder, we do this like so:-
sudo ln -s /usr/local/apache-tomcat-7.0.29 /Library/Tomcat
We now demand to change the buying of the /Library/Tomcat binder:-
sudo chown -R <your OSX username> /Library/Tomcat
We at present need to set up all the scripts under '/Library/Tomcat/bin' to executable, we do this like so:-
sudo chmod +x /Library/Tomcat/apache-tomcat-7.0.29/bin/*.sh
You've done it! – You can kickoff Tomcat manually by running:-
/Library/Tomcat/bin/startup.sh
You can stop it by running:-
/Library/Tomcat/bin/shutdown.sh
Tomcat is now installed and working, you should be able to access information technology on your motorcar using this URL: http://localhost:8080/
A handy little GUI tool to kickoff and stop Tomcat
In a development environment, instead of having to open up upwardly the console each time, I have found a handy picayune tool that allows you to easily Stop, Start and open up up the Tomcat enviroment… Its chosen 'Tomcat Controller' and can be downloaded from here: http://world wide web.activata.co.uk/tomcatcontroller/
It provides a prissy interface as shown below:-
Y'all volition however need to open up the 'Preferences' and change the Tomcat location to match your new set-up.
Tomcat 7 Download Mac Os X
Posted by: marlowecomand.blogspot.com