Wolf Paulus
Posts: 692
Nickname: wolfpaulus
Registered: Jan, 2004
|
Wolf Paulus is an experienced software developer focusing on Java, XML, Mac OS X, wireless/mobile ..
|
|
|
|
Installing Tomcat 6.0.x on OS X
|
Posted: Aug 8, 2007 1:49 PM
|
|
|
This post originated from an RSS feed registered with Java Buzz
by Wolf Paulus.
|
Original Post: Installing Tomcat 6.0.x on OS X
Feed Title: Wolf's Web Journal
Feed URL: http://wolfpaulus.com/feed/
Feed Description: Journal - dedicated to excellence, and motivated by enthusiasm to trying new things
|
Latest Java Buzz Posts
Latest Java Buzz Posts by Wolf Paulus
Latest Posts From Wolf's Web Journal
|
|
- Make Java 1.5 the default JRE
- Get the core distribution from http://tomcat.apache.org/
At the time of this writing that would be: apache-tomcat-6.0.13.tar.gz
- Unpacking will create a apache-tomcat-6.0.13 folder, probably on your desktop.
Move this folder into /usr/local, like this:
sudo mv ~/Desktop/apache-tomcat-6.0.13 /usr/local
- To make it easy to replace this release with future releases, we are going to create a symbolic link that we are going to use when revering to Tomcat:
sudo ln -s /usr/local/apache-tomcat-6.0.13 /Library/Tomcat
- Next step is making Tomcat's launch and stop scripts executable:
chmod ug+x /Library/Tomcat/bin/*.sh
- Create startup and shutdown scripts:
Startup:
Open TextEdit and create a startTomcat.command file in your home folder ...
#!/bin/sh
# --------------------------------------------------
# Start Script for the Tomcat Server
# --------------------------------------------------
export CATALINA_HOME=/Library/Tomcat
export JAVA_HOME=/Library/Java/Home
$CATALINA_HOME/bin/startup.sh
Shutdown:
Open TextEdit and create a stopTomcat.command file in your home folder ...
#!/bin/sh
# ---------------------------------------------------
# Start Script for the Tomcat Server
# ---------------------------------------------------
export CATALINA_HOME=/Library/Tomcat
export JAVA_HOME=/Library/Java/Home
$CATALINA_HOME/bin/shutdown.sh
- Open a Terminal and make both scripts executable:
chmod ug+x ~/startTomcat.command
chmod ug+x ~/stopTomcat.command
- Change ownership of the /Libaray/Tomcat folder hierarchy:
sudo chown -R your_username /Library/Tomcat
- Start Tomcat by simply clicking the startTomcat.command icon in your home folder.
Test with http://localhost:8080
Instead of using the start and stop scripts, you may also want to check out activata's Tomcat Controller a tiny freeware app, providing a UI to quickly start/stop Tomcat.
Read: Installing Tomcat 6.0.x on OS X
|
|