A. Sidiq Purnomo

Universitas Mercu Buana Yogyakarta

You are here: » How To Install Apache Tomcat On My OS / Ubuntu Linux

How To Install Apache Tomcat On My OS / Ubuntu Linux

1. Introduction

Apache Tomcat (or simply Tomcat, formerly also Jakarta Tomcat) is an open source web server and servlet container developed by the Apache Software Foundation (ASF). Tomcat implements the Java Servlet and the JavaServer Pages (JSP) specifications from Sun Microsystems, and provides a “pure Java” HTTP web server environment for Java code to run in. (wikipedia)

2. Requirement :

  1. JDK (Java Development Kit)
  2. IDE Netbeans / Eclipse
  3. Database :
  4. Web Container : Tomcat – http://tomcat.apache.org/

3. Installation

  1. Download Tomcat (ex : apache-tomcat-7.0.47.tar.gz )
  2. Run the commands below to extract the downloaded file, and copy to “/opt/” directory, Inside terminal, execute the following command :
    $sudo tar xvzf apache-tomcat-7.0.47.tar.gz -C /opt/
  3. Open “bash.bashrc” file, Inside terminal, execute the following command :
    dnd@riyaniezt:~$ sudo gedit /etc/bash.bashrc
  4. Insert on the bottom row in “bash.bashrc” following code:
    export CATALINA_HOME=/opt/apache-tomcat-7.0.47
  5. After finished add path environtment, reboot your computer to complete configuration. Inside terminal, execute the following command :
    dnd@riyaniezt:~$ sudo reboot
  6. Finally, run the commands below to begin the installation, Inside terminal, execute the following command :
    dnd@riyaniezt:~$ /opt/apache-tomcat-7.0.47/bin/startup.sh

    Or :

    dnd@riyaniezt:~$ sudo $CATALINA_HOME/bin/startup.sh
  7. You should see something like this:
  8. After updating, run the commands below to include Apache Tomcat in your path environment.
    dnd@riyaniezt:~$ sudo gedit /opt/apache-tomcat-7.0.47/conf/tomcat-users.xml
  9. Insert on the bottom row (before “” row) in “tomcat-users.xml” following :
    <user username="your username" password="your_password" roles="manager-script,admin"/>
  10. You’re done. Point your browser to http://localhost:8080 and you should see the Tomcat page:

4. References

Posted by 0 Responses
 

Free Email Newsletter

Stay Updates with this Blog. Get Free email newsletter updates..

And then confirm your email subcription

   

No Comment to “How To Install Apache Tomcat On My OS / Ubuntu Linux”

  1. No Comment yet. Be the first to comment...
Leave your comment here:


three + 5 =

Dec
24
2013