Home » Categories » Linux Cloud Server » UBuntu |
How To Install Apache Tomcat on Ubuntu 12.04 |
Article Number: 163 | Rating: 1/5 from 1 votes | Last Updated: Sun, Jan 5, 2014 at 9:02 PM
|
About Apache Tomcat Apache tomcat is a Java based application server released by the Apache Software Foundation. It is a web server and a servlet container for Java web applications. 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. Step One—Install Tomcat The most recent version of Tomcat is
7, and it can be easily downloaded through apt-get or from the Apache Tomcat
site. sudo apt-get install tomcat7 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 Apache’s many mirrors, making the command look mostly like this (although coming from a different site).wget http://mirror.atlanticmetro.net/apache/tomcat/tomcat-7/v7.0.29/bin/apache-tomcat-7.0.29.tar.gz After the download completes, untar the file. tar xvzf apache-tomcat-7.0.29.tar.gz Finish up the Tomcat installation on the server by moving the files to a convenient directory. sudo mv apache-tomcat-7.0.29 ~/path/to/tomcat Step Two—Install Java We installed the entire Apache Tomcat server on our virtual server in the previous step. Before we can use it, however, we do need to have Java installed on the server as well. If you currently do not have java, you can download it quite easily with apt-get. sudo apt-get install default-jdk Once you have Tomcat and Java installed on the virtual private server, all that remains is to start them. Step Three—Configure .bashrc In order to start Tomcat, we need to add it as an environment variable in the /.bashrc file. sudo nano ~/.bashrc You can add this information to the end of the file: export JAVA_HOME=/usr/lib/jvm/default-java export CATALINA_HOME=~/path/to/tomcat Save and exit out of .bashrc. You can make the changes effective by restarting the bashrc file. . ~/.bashrc Step Four—RESULTS 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: $CATALINA_HOME/bin/startup.sh Once that runs, Tomcat is up and ready on port 8080. |
Attachments
![]()
There are no attachments for this article.
|
How to Install OpenVPN Access Server on Ubuntu 12.04
Viewed 3582 times since Thu, Jan 2, 2014
How To Install and Use Docker: Getting Started
Viewed 3948 times since Sat, Jan 4, 2014
How To Install nginx on Ubuntu 12.04 LTS
Viewed 2914 times since Tue, Dec 24, 2013
How To Install and Secure phpMyAdmin on Ubuntu 12.04
Viewed 3051 times since Mon, Dec 23, 2013
How To Launch Your Site on a New Ubuntu 12.04 Server with LAMP, SFTP, and DNS
Viewed 2778 times since Thu, Dec 26, 2013
How To Set Up an NFS Mount on Ubuntu 12.04
Viewed 10479 times since Tue, Dec 24, 2013
How To Use Top, Netstat, Du, & Other Tools to Monitor Server Resources
Viewed 6970 times since Sat, Jan 4, 2014
How to Setup a Multi-Protocol VPN Server Using SoftEther
Viewed 9747 times since Thu, Jan 2, 2014
How To Create Nagios Plugins With PHP On Ubuntu 12.10
Viewed 2471 times since Sat, Jan 4, 2014
How To Create Nagios Plugins With Bash On Ubuntu 12.10
Viewed 2249 times since Sat, Jan 4, 2014
|