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
Create a directory
Alter directory to tomcat:
$ cd /opt/tomcat
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.
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
Decompress the file in your tomcat binder afterwards it has finished downloading:
$ tar xvzf apache-tomcat-8.v.65.tar.gz
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 the Java Development Kit
Now verify coffee installed properly:
$ java -version
Verify java installed properly
Configure .bashrc File:
Use the following command to fix the surroundings variables in .bashrc:
$ nano ~/.bashrc
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
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.
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