If you are running Ubuntu and want to use the Tomcat servlet runner, Some times the apt will not work correctly. You can try the following method it will work.
Before you installing Tomcat you must install Java. I would assume if you are trying to install Tomcat you've already installed java, otherwise install Java as per my previous posting. If you aren't sure about your Java installation, you can check with the dpkg command like so:
dpkg --get-selections | grep sun-java
This will give you this output if you already installed java:
sun-java6-bin install
sun-java6-jdk install
sun-java6-jre install
Installation
Now we'll download and extract Tomcat from the apache site.
wget http://apache.hoxt.com/tomcat/tomcat-6/v6.0.18/bin/apache-tomcat-6.0.18.tar.gz
tar xvzf apache-tomcat-6.0.18.tar.gz
The best thing to do is move the tomcat folder to a permanent location. I chose /usr/local/tomcat, but you could move it somewhere else if you wanted to.
sudo mv apache-tomcat-6.0.18 /usr/local/tomcat
Tomcat requires setting the JAVA_HOME variable. The best way to do this is to set it in your .bashrc file. You could also edit your startup.sh file if you so chose.
The better method is editing your .bashrc file and adding the bolded line there. You'll have to logout of the shell for the change to take effect.
vi ~/.bashrc
Add the following line:
export JAVA_HOME=/usr/lib/jvm/java-6-sun
At this point you can start tomcat by just executing the startup.sh script in the tomcat/bin folder.
How to install Tomcat 6 on Ubuntu
Related Posts:
Install Nodoka (Fedora theme) on UbuntuNodoka is the new Fedora default theme for Gnome. It currently contains gtk engine, gtk theme, metacity theme and gnome meta theme .If you want to ins… Read More
connect iPhone/iPod Touch (Using USB) in Karmic/Jaunty/Intrepid/HardyIf you want iphone/ipod touch in ubuntu easy way is using iFuse program. iFuse allows you to mount an iPhone or iPod Touch under Linux using the USB … Read More
Audio player based on gstreamer- ZikZiK is an audio player based on gstreamer. It uses the path of your audio files instead of a music library. Audio files are shown on the left panel as… Read More
setup Second IP address or Virtual IP address to your Networkcard in ubuntuIf you are a Network Administrator some time you need to assign more than ONE ip address (second ipaddress) to your network card of Ubuntu machine. Fo… Read More
How to Speed Up your Internet Speed in UbuntuDid you know that you can boost up your internet speed in Ubuntu Gutsy Gibbon 7.10 by some simple changes in a test file? Have a try on these... O… Read More
1 comments:
I have just installed Tomcat 6 on my Ubuntu, thank you guidance on this install.
Post a Comment