banner



How To Install Apache Tomcat 8

Apache Tomcat (curt for "Tomcat") is a gratuitous and open-source Java Servlet, JavaServer Pages, Java Expression Language, and WebSocket implementation. [two] Tomcat is an HTTP web server that runs Java lawmaking in a "pure Java" surround.

Tomcat is adult and maintained by a free group of developers under the Apache Software Foundation'due south auspices and is licensed under the Apache License 2.0. In this commodity, we are going to meet how to install Apache Tomcat 8 on Linux systems.

Installing Apache Tomcat 8:

Create a directory named tomcat in the /opt folder:

$ mkdir /opt/tomcat

Installing Apache Tomcat 8:

Create a directory

Alter directory to tomcat:

$ cd /opt/tomcat

Installing Apache Tomcat 8:

Modify directory to tomcat

Go to the Apache Tomcat 8 Download page by clicking this link. Place your cursor under 8.5.65 Binary Distributions, right-click on the tar file and select the re-create link address from the carte du jour that appears (as shown in the picture beneath). At the time of writing, Tomcat 8 is the virtually recent edition, but you are free to use any version is about electric current.

Installing Apache Tomcat 8:

Adjacent, use the wget command to download the tar from the URL you copied in the previous stage to the tomcat folder on your server:

$ sudo wget https://apachemirror.wuchna.com/tomcat/tomcat-8/v8.5.65/bin/apache-tomcat-eight.five.65.tar.gz

Installing Apache Tomcat 8:

Decompress the file in your tomcat binder afterwards it has finished downloading:

$ tar xvzf apache-tomcat-8.v.65.tar.gz

Installing Apache Tomcat 8:

Decompress the file

Installing Java:

Y'all must offset install the Java Evolution Kit before you can utilise Tomcat (JDK). Check to run across if Java is installed first:

$ apt-go install default-jdk

Installing Apache Tomcat 8:

Installing the Java Development Kit

Now verify coffee installed properly:

$ java -version

Installing Apache Tomcat 8:

Verify java installed properly

Configure .bashrc File:

Use the following command to fix the surroundings variables in .bashrc:

$ nano ~/.bashrc

Installing Apache Tomcat 8:

Add the post-obit lines to the file's end:

export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64 consign CATALINA_HOME=/opt/tomcat/apache-tomcat-8.5.65

Installing Apache Tomcat 8:

After y'all've saved your changes and exited the .bashrc file, run the following command to make the changes have effect:

$ . ~/.bashrc

Your server should now accept Tomcat and Java enabled and configured. Run the following script to start Tomcat:

$ $CATALINA_HOME/bin/startup.sh

In a web browser, go to YourIPAddress:8080 to see if Tomcat is up and running. http://127.0.0.one:8080, for case.

Installing Apache Tomcat 8:

Source: https://www.geeksforgeeks.org/how-to-install-apache-tomcat-8-on-linux/

Posted by: olivenonvize.blogspot.com

0 Response to "How To Install Apache Tomcat 8"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel