Git Product home page Git Product logo

install-jenkins-on-aws-ec2's Introduction

Install Jenkins on AWS EC2 Instance

Jenkins is an open source automation server written in Java. Basically, Jenkins provides a continuous integration (CI) and continuous delivery (CD) solution to accelerate the software delivery process.

Launch a Linux EC2 Instance and configure security group.

Update the installed packages

sudo su
yum update

Install Java 8

java -version
yum install java-1.8.0

Install Jenkins

1.) Download the latest Jenkins package from the Red Hat Repository

wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat/jenkins.repo

2.) Import the verification key using the package manager RPM

rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key

Note: If you've previously imported the key from Jenkins, the "rpm --import" will fail because you already have a key. Please ignore that and move on.

3.) Install the Jenkins package by issuing the following command

yum install -y jenkins

Start Jenkins Service

You can start the jenkins service by issuing the following command

service jenkins start

Check Jenkins Installation

You can check the Jenkins process running on your server by issuing the following command

ps -aux | grep jenkins

Auto-Start Jenkins Service on system reboot

You can ensure that Jenkins will start following a system reboot by issuing the following command

chkconfig jenkins on

Stop Jenkins Service

As needed, you can stop the Jenkins process by issuing the following command

service jenkins stop

Restart Jenkins Service

You can restart the Jenkins process by issuing the following command

service jenkins restart

Configure Jenkins

1.) Access Jenkins through browser

http://YOUR-SERVER-PUBLIC-IP:8080

2.) Now copy the default admin password and paste it to unblock the Jenkins

cat /var/lib/jenkins/secrets/initialAdminPassword

3.) Choose install suggested plugins

4.) Create your first admin user

install-jenkins-on-aws-ec2's People

Contributors

aveshsri2005 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.