How to install Jenkins on Amazon AWS EC2 Linux | 8 Steps

preview_player
Показать описание
Hello everyone,

In this video, I have explained about the installation of Jenkins on AWS EC2-Instance.

What is Jenkins ?

Jenkins is one of the famous and most used CI/CD Tool in the IT Market today. It can be Integrated with many other tools like git hub , git lab , bit bucket and many more.. It can also be used for testing and as well as for performing automation.

Commands used in this video:
1. Create AWS EC2 instance and configure security group to open port 8080.

2. Check JAVA installation, if not install JAVA
sudo yum install java-1.8.0

3. Download latest Jenkins code package using below link,

4. Import a key file from Jenkins CI to enable installation from the package. Execute the below command.

5. Install Jenkins
sudo yum install jenkins

6. Start Jenkins service,
sudo service jenkins start

7. Access Jenkins server on browser using public DNS on port 8080
https://{ec2-instance-public-dns}:8080/

8. Once the Jenkins is started, unlock Jenkins by providing the Administrator password
sudo su -
cd /var/lib/jenkins/secrets/
cat initialAdminPassword
455605da254c4dab94307549fe113034

Useful tips

To start jenkins on a diff port
Update port number in /etc/sysconfig/jenkins

To fetch initial admin password
sudo su -
cd /var/lib/jenkins/secrets/
cat initialAdminPassword
0bcbbcab7f984af7b4171b55e9201d04
To stop Jenkins
sudo service jenkins stop

To uninstall Jenkins
sudo service jenkins stop
sudo yum remove jenkins
sudo rm -r /var/lib/jenkins

#Jenkins #JenkinsAutomation
Рекомендации по теме
Комментарии
Автор

I have Jenkins running on Ubuntu hosted on AWS. I can access the setup wizard; the problem I am having occurs after entering my admin password then proceeding to install the suggested plugins. I get an unable to connect to Jenkins message. Please, I need help on how to resolve this issue. I have spent hours trying to get this resolved by following suggested solutions but to no avail. Thanks

ajitswain
Автор

it installs jenkins 2.395, but the LTS version is 2.387.1.
can you please help

vincentmachado
Автор

Bhai when I copy public dns on browser I'm not able to open what shall I do

dilipkumars
Автор

Sir when I give jenkins intall it's asking demonize for package

dilipkumars
Автор

amazon-linux-extras install epel -y && yum update jenkins -y use this command for errorr

rohithkumara