sabato 2 febbraio 2013

Installare Tomcat 7 su Mac

Da http://ballen.co.uk/2012/07/30/installing-tomcat-7-on-macosx/


Installing Tomcat 7 on your Mac

1) 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 down to the ‘Binary distrubutions’ section and download the ‘.tar.gz’ file. At the time of writing the version I downloaded and installed was7.0.29
2) Opening or un-archiving the download will now create a new folder – more than likely this will be in your downloads folder unless you choose a different folder to download the file to.
3) Our next step 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-7.0.29  /usr/local
To make it easy to switch and upgrade Tomcat versions in future we’ll use a symbolic link to alias the tomcat folder, we do this like so:-
sudo ln -s /usr/local/apache-tomcat-7.0.29  /Library/Tomcat
We now need to change the ownership of the /Library/Tomcat folder:-
sudo chown -R   /Library/Tomcat
We now need to set 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 start 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 it on your machine using this URL: http://localhost:8080/

Nessun commento:

Posta un commento