Posts

Showing posts from July, 2018

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 directory loca

How to install MongoDB in Ubuntu

How to install MongoDB in Ubuntu --------------------------------------------- This post will describe how to install and configure MongoDB. MongoDB is  an open source document database and of type no sql. It stores data in the form of JSON( JavaScript Object Notation ) as a combination of documents and collection. It is highly scable and performance Software Version used in this post were as follows: MongoDB v3.6 and Ubuntu 18.04 Step 1 Creating Source list file Step 2 Installing MongoDB Step 3 Start the Mongo Deamon Step 4 Configure User for MongoDB -------------------------------------------------------------- STEP 1 : CREATING SOURCE LIST FILE Importing the public key sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5 Creating Souce list File echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.6.list STEP 2 : INSTALLING M