Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
MENU
Setup
Tomcat installation on a virtual private server is relatively easy.
Its single required dependency is Java and this tutorial will
include a step on how to install that platform.
You do need to have a user with sudo privileges for this
tutorial.
https://www.digitalocean.com/community/tutorials/how-to-install-apache-tomcat-on-ubuntu-12-04
1/20
12/6/2014
To download tomcat from their site, copy the link for the tar.gz
package under the Core section and begin the download.
You will get a link that originates from one of Apaches many
mirrors, making the command look mostly like this (although
coming from a different site).
we ht:/irralnimtontaah/octtma-/702/
gt tp/mro.tatcer.e/pcetma/oct7v..9b
https://www.digitalocean.com/community/tutorials/how-to-install-apache-tomcat-on-ubuntu-12-04
2/20
12/6/2014
epr CTLN_OE~pt/otma
xot AAIAHM=/aht/oct
Save and exit out of .bashrc. You can make the changes
effective by restarting the bashrc file.
.~.ahc
/bsr
Step FourRESULTS
Tomcat is now installed and configured on our virtual servers.
However, it is not yet activated.
The final step is to activate Tomcat by running its startup
script:
$AAIAHM/i/tru.h
CTLN_OEbnsatps
https://www.digitalocean.com/community/tutorials/how-to-install-apache-tomcat-on-ubuntu-12-04
3/20
12/6/2014
Related Tutorials
How To Use Apache HTTP Server As Reverse-Proxy Using mod_proxy
Extension
How to Set Up Railo CFML Engine with Tomcat and Apache on a Debian
7 or Ubuntu 13 VPS
How To Set Up Multiple SSL Certificates on One IP with Apache on
Ubuntu 12.04
How To Use Logstash and Kibana To Centralize Logs On Ubuntu 14.04
How To Install Graylog2 And Centralize Logs On Ubuntu 14.04
Share
Submit
49 Comments
maiconfz November 13, 2012
Thanks!!! IT WORKS!!!
Obs.: You can access the server at [droplet-ip]:8080/ .It's
not at localhost:8080/
https://www.digitalocean.com/community/tutorials/how-to-install-apache-tomcat-on-ubuntu-12-04
4/20
12/6/2014
5/20
12/6/2014
6/20
12/6/2014
environments.
7/20
12/6/2014
https://www.digitalocean.com/community/tutorials/how-to-install-apache-tomcat-on-ubuntu-12-04
8/20
12/6/2014
9/20
12/6/2014
to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu
or
nginx:
https://www.digitalocean.com/community/articles/howto-install-linux-nginx-mysql-php-lemp-stack-on-ubuntu-1204
10/20
12/6/2014
11/20
12/6/2014
12/20
12/6/2014
13/20
12/6/2014
tomcat7?
14/20
12/6/2014
/var/lib/tomcat7/webapps/ROOT/index.html
Tomcat7 veterans might be pleased to learn that this
system instance of Tomcat is installed with
CATALINA_HOME in /usr/share/tomcat7 and
CATALINA_BASE in /var/lib/tomcat7, following the rules
from /usr/share/doc/tomcat7-common/RUNNING.txt.gz.
You might consider installing the following packages, if
you haven't already done so:
tomcat7-docs: This package installs a web application that
allows to browse the Tomcat 7 documentation locally.
Once installed, you can access it by clicking here.
tomcat7-examples: This package installs a web
application that allows to access the Tomcat 7 Servlet and
JSP examples. Once installed, you can access it by
clicking
https://www.digitalocean.com/community/tutorials/how-to-install-apache-tomcat-on-ubuntu-12-04
15/20
12/6/2014
https://www.digitalocean.com/community/tutorials/how-to-install-apache-tomcat-on-ubuntu-12-04
16/20
12/6/2014
17/20
12/6/2014
18/20
12/6/2014
previusly on terminal :
sudo /etc/init.d/tomcat7 start
[sudo] password for user: xxxxxx
* Starting Tomcat servlet engine tomcat7
and:
It works !
If you're seeing this page via a web browser, it means
you've setup Tomcat successfully. Congratulations!
This is the default Tomcat h........
Log In to comment
Leave a comment...
SUBMIT COMME NT
https://www.digitalocean.com/community/tutorials/how-to-install-apache-tomcat-on-ubuntu-12-04
19/20
12/6/2014
Copyright 2014
DigitalOcean Inc.
Proudly Made in NY
Terms, Privacy, & Copyright
Security
C OMMUNITY
Dashboard
Overview
Tutorials
Questions
Projects
Tutorial Suggestions
Get Paid to Write
1 , 8 3 3 , 8 1 1 D ROPL E T S L AU N CH E D
https://www.digitalocean.com/community/tutorials/how-to-install-apache-tomcat-on-ubuntu-12-04
20/20