Devops Jenkins Installation in linux using apache tomcat

  • Slides: 5
Download presentation
Devops Jenkins : Installation in linux using apache tomcat Created By: Amrit Choudhary Devops

Devops Jenkins : Installation in linux using apache tomcat Created By: Amrit Choudhary Devops Engineer https: //buildreleasedeployment. wordpress. com/

Pre-requisites taken care through simple commands Pre-Requisites 1) Must have jdk installed 2) Set

Pre-requisites taken care through simple commands Pre-Requisites 1) Must have jdk installed 2) Set JAVA_HOME env variable in /etc/profile Install Java yum install java-1. 7. 0 -openjdk Download Tomcat wget http: //www-eu. apache. org/dist/tomcat-7/v 7. 0. 75/bin/apache-tomcat-7. 0. 75 -windowsx 64. zip Jenkins war repository link: Go to below link and download any version of jenkins wget https: //updates. jenkins-ci. org/download/war/2. 49/jenkins. war

Practical implementation part Step 1) Install Java in Linux Eg. In Redhat : yum

Practical implementation part Step 1) Install Java in Linux Eg. In Redhat : yum install java-1. 7. 0 -openjdk Step 2) unzip downloaded apache tomcat zip Eg. In Redhat : unzip apache-tomcat-7. 0. 75 -windows-x 64. zip Step 2. 0) providing 777 permissions to tomcat directory rescursively chmod -R 777 apache-tomcat-7. 0. 75 -src Step 2. 1) providing access to particular user & group recursively chown –R vagrant: vagrant apache-tomcat-7. 0. 75 -src Step 2. 2) cd apache-tomcat-7. 0. 75/bin Starting the apache tomcat server Step 2. 3). /startup. sh Step 2. 4) Verify tomcat is up & running Check for “logs/catalina. out” if everything is ok and tomcat is up & running Or ps –ef | grep tomcat {grep tomcat process to check it is up & running} Or hit url http: /192. 168. 56. 101: 8080 if tomcat running you can see the webpage for tomcat

Practical implementation part Step 2. 5) stop tomcat server bin/shutdown. sh Step 3) copy

Practical implementation part Step 2. 5) stop tomcat server bin/shutdown. sh Step 3) copy Jenkins. war to webapps folder of tomcat parallel to bin cp -rf Jenkins. war webapps/ Step 4) start the tomcat server bin/startup. sh Step 5) access jenkins url http: /192. 168. 56. 101: 8080/jenkins

Steps to Get Jenkins up and running Steps 1) When it prompts for password

Steps to Get Jenkins up and running Steps 1) When it prompts for password go to the location provided by Jenkins and copy/paste the password 2) Select the below option for default plugins to be installed by Jenkins 3) Fill the details and create the user for Jenkins Congrats Jenkins server is up & running