Posts

Showing posts with the label Tomcat

INSTALL AND REMOVE TOMCAT USING APT-GET IN UBUNTU

Image
This post will serve as a guide to installing the tomcat using apt-get manager using two simple steps. STEP 1: INSTALLING TOMCAT STEP 2: INSTALLING DEPENDENCIES Step 1: Install the Tomcat Update the package list using the command. $ sudo apt-get update Install the tomcat using the command $ sudo apt-get install tomcat8 Check the tomcat status $ sudo service tomcat8 status Go to the browser to view your tomcat http:localhost:8080 Step 2: Installing dependencies Install the necessary packages $ sudo apt-get install tomcat8-docs tomcat8-admin tomcat8-examples Restart the tomcat $ sudo service tomcat8 restart Step 3: Configuring the tomcat (Optional) To configure the tomcat properties such as memory allocated for tomcat enter the details in the following file $ sudo nano /etc/default/tomcat8 Restart to apply the changes $ sudo service tomcat8 restart To configure the users with password and roles use the following XML $ sudo nano /etc/tomcat8/tomcat-users.xml ...

How to install Apache Tomcat in Ubuntu

This post will describe how to install and configure Apache Tomcat. Apache Tomcat is a Servlet Container for Java-based Web Application. It is an open source software developed by Apache Software Foundation. It has three major Components Catalina (Servlet Container) Coyote (HTTP connector) Jasper (JSP engine) Software Version used in this post were as follows: Tomcat v9.08, Ubuntu 18.04 and Java JDK Step 1  Install Java Step 2 Create Tomcat User Step 3 Install Tomcat Step 4 Configure Tomcat Step 5 Manage Credentails Step 6 Start Tomcat ----------------------------------- STEP 1 : INSTALLING JAVA If Java JDK is not available install it. First, update the package index $ sudo apt-get update Then install Java JDK $ sudo apt-get install default-jdk STEP 2 : CREATE TOMCAT USER Create new tomcat group $ sudo groupadd tomcat  Create tomcat user with a home directory where we can install tomcat(/opt/tomcat) $ sudo useradd -s /bin/false -g groupname -d direc...