How to install Jenkins on Amazon Linux 2 in 2024

You are currently viewing How to install Jenkins on Amazon Linux 2 in 2024

Jenkins is a popular open-source automation tool that helps organizations automate the process of building, testing, and deploying software. In this article, we will discuss the steps to install Jenkins on an Amazon Linux 2 machine. The installation process is relatively straightforward and requires only a few commands to be executed on the command line. By the end of this article, you will have a fully functional Jenkins instance running on your machine.

To install Jenkins on Amazon Linux 2, you can follow these steps:

Add the Jenkins repository to your system’s package manager by running the command:


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

Import the Jenkins repository GPG key by running the command:

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

Install Jenkins by running the command:

sudo yum install jenkins

Start the Jenkins service by running the command:

sudo systemctl start jenkins

Verify that Jenkins is running by running the command:

sudo systemctl status jenkins

Finally, enable Jenkins to start automatically at boot time by running the command:

sudo systemctl enable jenkins

Note: Some of these steps may require you to have root access to your machine.

In summary, installing Jenkins on an Amazon Linux 2 machine is a simple process that requires a few commands to be executed on the command line. By following the steps outlined in this article, you will be able to set up a fully functional Jenkins instance that you can use to automate your software development processes. Jenkins is a powerful tool that can help organizations streamline their software development process and improve their overall efficiency. It’s a great choice for anyone looking to automate their software development processes and improve their overall efficiency.

Atiqur Rahman

I am MD. Atiqur Rahman graduated from BUET and is an AWS-certified solutions architect. I have successfully achieved 6 certifications from AWS including Cloud Practitioner, Solutions Architect, SysOps Administrator, and Developer Associate. I have more than 8 years of working experience as a DevOps engineer designing complex SAAS applications.

Leave a Reply