Install Apache Tomcat In Debian Server Setup



Apache Tomcat, often referred to as Tomcat, is an open-source application server developed by the Apache Software Foundation. It implements several Java EE specifications and executes Java servlets rendering Web pages that include Java Server Page coding in the process.

To install the latest release of Tomcat 9 on your Debian 10 server, you must have Java installed on the server so that you can execute Java web application code. First, update the system software package index using the apt command as shown. $ sudo apt update Apt Update Debian 10.

Install Apache Tomcat In Debian Server Setup

In this article we will guide you through the steps on installing the latest Tomcat 8 server on a Debian 8 VPS.

Install

Step 1 - Download And Extract The Latest Binary Distribution. You can download the latest version. Step 3: Install Apache Tomcat 9 on Debian 10 With Ansible. Once all values are updated, you can then run the playbook against your nodes. Playbook executed as root user – with ssh key: $ ansible-playbook -i hosts tomcat-setup.yml Playbook executed as root user – with password: $ ansible-playbook -i hosts tomcat-setup.yml -ask-pass. A Guide To Apache Tomcat Linux Installation and Set-Up. Many Apache Tomcat users choose to run their Tomcat instances on Linux, with good reason - it's a rock solid operating system, with many different flavors to cater to the needs of a wide variety of users and situations.

This guide should work on other Debian systems as well but was tested and written for a Debian 8 (Jessie) OS.

Login to your server via SSH

Reassure that you have the proper version of Debian installed on our server :

REQUIREMENTS

We will be using our SSD 1 Linux VPS hosting plan for this tutorial.

UPDATE THE SYSTEM

Make sure your server is fully up to date and install wget and unzip:

INSTALL JRE 8

Add the webupd8team Java PPA repository in your Debian system. After that you will be able to install the latest JRE (Java SE Runtime Environment) which is needed for Tomcat to run. Issue the following commands:

Update the package index and install Java 8:

Check if Java has been properly installed:

The following output should be received:

INSTALL TOMCAT

We recommend you to create a separate system user which will run the Tomcat server. Therefore, issue the following command:

Now download the latest Tomcat version from their official website. Use the below command to download Tomcat 8.0.41 into the ‘opt’ directory.

Enter the ‘opt’ directory:

Install Apache Tomcat In Debian Server Setup Free

Unpack the archive:

Next, create a symbolic link of the Tomcat directory to /opt/tomcat-latest and set the appropriate ownership:

Let’s create a systemd init file so you can start/restart/stop Tomcat.

Once opened, paste the following:

Enter the underneath commands to start Tomcat and enable it to start on boot:

Debian Install Apache2

Congratulations, you have successfully installed Tomcat 8 on your Debian 8 VPS. Now to access Tomcat, open your favorite web browser and navigate to http://your_server_IP:8080

Of course you don’t have to do any of this if you use one of our Linux VPS Hosting services, in which case you can simply ask our expert Linux admins to install Tomcat 8 for you. They are available 24×7 and will take care of your request immediately.

Install Apache Tomcat In Debian Server Setup Software

PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.