go to  ForumEasy.com   
JavaPro
Home » Archive » Message


[Email To Friend][View in Live Context][prev topic « prev post | next post » next topic]
  Manually download and unpack the Tomcat package
 
Subject: Manually download and unpack the Tomcat package
Author: Linux
In response to: How To Install Tomcat on Ubuntu 16.04 Box
Posted on: 10/21/2017 01:30:30 AM

Step 1) Download the Tomcat package

First go to http://tomcat.apache.org/download-80.cgi, find the tar.gz under Binary Distributions and download it to local Windows machine.

Step 2). Make the folder available

$ sudo mkdir /opt/tomcat
$ cd /opt
$ sudo chmod 777 tomcat


Step 3). Upload the downloaded Tomcat by WinSCP

Copy apache-tomcat-8.5.23.tar.gz onto /opt/tomcat

Step 4). Unzip the package
$ cd /opt/tomcat
$ tar xzf apache-tomcat-8.5.23.tar.gz


The Tomcat content is under folder /opt/tomcat/apache-tomcat-8.5.23

Step 5). Verify it is working
$ cd /opt/tomcat/apache-tomcat-8.5.23
$ ./bin/startup.sh

Using CATALINA_BASE:   /opt/tomcat/apache-tomcat-8.5.23
Using CATALINA_HOME:   /opt/tomcat/apache-tomcat-8.5.23
Using CATALINA_TMPDIR: /opt/tomcat/apache-tomcat-8.5.23/temp
Using JRE_HOME:        /usr/local/java/jdk1.8.0_152
Using CLASSPATH:       /opt/tomcat/apache-tomcat-8.5.23/bin/bootstrap.jar:/opt/
tomcat/apache-tomcat-8.5.23/bin/tomcat-juli.jar
Tomcat started.


Goto the box's browser and use localhost
http://localhost:8080/


Or other machine's browser and use box's ip-address
http://10.11.12.13:8080/


Finally, stop it
$ ./bin/shutdown.sh



 

> On 10/21/2017 01:28:17 AM Linux wrote:

Prerequisites

  • Java JDK installed and JAVA_HOME has been set up. Check here to see details.




    References:

  •  


     
    Powered by ForumEasy © 2002-2022, All Rights Reserved. | Privacy Policy | Terms of Use
     
    Get your own forum today. It's easy and free.