This Guide shows you How to Install the Latest Tomcat 7 Server Release on Ubuntu Linux 12.04 Precise Pangolin.
It’s Best to Install Tomcat 7 Using the Apache Official Distro Instead, of Installing it by Ubuntu apt-get Packages.
In Fact the Ubuntu Packaged Tomcat 7 has Cut the Official Tomcat Distro in Pieces and doing so has Open the door to Unwanted Intrications and Complications in Configuration and Management.
Inside the Post you will Find a Link to Getting-Started with Tomcat 7 on Ubuntu Linux.
Finally, to improve the Visualization of the whole Process the Post includes the Essential Screenshots.
-
Download Tomcat.
Apache Tomcat 7 tar.gz -
Find the Downloaded Package and Double-Click to Extract in /tmp
-
Open a Terminal Window
(Press “Enter” to Execute Commands)In case first see: Terminal QuickStart Guide.
-
Relocate Tomcat
Login as SuperUser.
sudo su
If Got “User is Not in Sudoers file” then see: How to Enable sudo
Move it.
sudo chown -R root:root /tmp/apache-tomcat*
mv /tmp/apache-tomcat-7* /opt
-
Check if Java is Installed on your Platform
java -version
The Output Need to Show a Version >= 1.6.
Howto Install Oracle Java JDK 7 on Ubuntu Linux 12
-
Set $CATALINA_HOME Environment Variable
exit
nano ~/.bashrc
Append:
export $CATALINA_HOME=/opt/apache-tomcat-7
Load Set-Up.
bash
-
Start and Stop the Tomcat Server
-
Start Tomcat
sudo $CATALINA_HOME/bin/startup.sh
-
Stop Tomcat
sudo $CATALINA_HOME/bin/shutdown.sh
-
-
Then to Access Tomcat Admin on Browser Go.
-
Tomcat 7 Quick Start:
Tomcat Quick Start Guide