The sysadmin gave me a virtual machine which I access through terminal.
I have root access and it got Ubuntu 12.04.3 LTS.
The command apt-cache policy tomcat7
informs:
tomcat7:
Installed: (none)
Candidate: 7.0.26-1ubuntu1.2
Version table:
7.0.26-1ubuntu1.2 0
500 http://br.archive.ubuntu.com/ubuntu/ precise-updates/universe amd64 Packages
500 http://security.ubuntu.com/ubuntu/ precise-security/universe amd64 Packages
7.0.26-1ubuntu1 0
500 http://br.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages
root@mymachine:~#
However, I'd like to install the latest Tomcat 7 (7.0.42) on it.
Is it doable? If yes, how?
Best Answer
Yes, it is possible to install Tomcat 7.0.42, but you'll have to do it "manually".Here are steps on how to do so:
wget http://mirror.atlanticmetro.net/apache/tomcat/tomcat-7/v7.0.42/bin/apache-tomcat-7.0.42.tar.gz
tar xzvf apache-tomcat-7.0.42.tar.gz
sudo mv apache-tomcat-7.0.42 /usr/local
/usr/local
. You can choose any path you want. The remaining commands will assume you have used this path.nano ~/.bashrc
- this will open up a text editor. Go to the end of the file (Alt+/) and add the following two lines:. ~/.bashrc
sudo $CATALINA_HOME/bin/startup.sh
- you should see something like this:And no errors.
You're done. Point your browser to
http://localhost:8080
and you should see the Tomcat page: