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

preview_player
Показать описание
Hi, I am Raghav & today we will learn:
1. How to download and install Jenkins on aws ec2 linux
2. How to access Jenkins from browser
3. How to start and stop Jenkins
4. How to start Jenkins on different port
5. How to uninstall Jenkins

Step 1 : Connect to your Linux machine
SetUp JAVA PATH
Set up Custom TCP port: 8080 in AWS Security Groups

Step 2: Update Packages
sudo yum update

Step 3 : Check Java is installed. If not install java
java -version
sudo yum install java-1.8.0

To check and select one out of multiple java versions available
sudo /usr/sbin/alternatives --config java

Step 4 : Download latest Jenkins code package

Step 5 : Import a key file from Jenkins-CI to enable installation from the package

Step 6 : Install Jenkins
sudo yum install jenkins

Step 7 : Start jenkins
sudo service jenkins start

Step 8 : Access Jenkins server using the public DNS of your ec2 on port 8080
http://{ec2-public-dns}:8080

Note : Here you might have to allow port 8080 in your security group settings


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

References

HIT SUBSCRIBE & BELL TO GET NEW VIDEOS

JOIN me on this educational journey as a member and get exclusive perks - Click the JOIN button

ONLINE COURSES TO LEARN

------------ UI TESTING ------------

------------ API TESTING ------------

------------ MOBILE TESTING ------------

------------ CI | CD | DEVOPS ------------

------------ VERSION CONTROL SYSTEM ------------

------------ PERFORMANCE TESTING ------------

------------ JAVA ------------

------------ MAVEN ------------

------------ OTHERS ------------

Keep Learning,
Raghav

You can support my mission for education here:
Рекомендации по теме
Комментарии
Автор

Raghav, my dude, seriously one of the most helpful videos on Jenkins I think I've seen yet. Thanks for this man.

josantiago
Автор

Raghav, youve been relevant my entire programming career! from groovy all the way to deploying on aws! Amazing work man! Keep on doing it for us as we develop for the world!

tonymudau
Автор

Thanks Raghav,
I have followed all your steps and faced a problem with below these listed points:
You have missed 2 points here.
1. To SetUp JAVA PATH
2. To Set up Custom TCP port: 8080 in AWS Security Groups
Faced these 2 problems after following your shared video on Jenkins installation on ec2, it will help beginners to go through all steps.

vinayahlawat
Автор

Awesome man..U have saved my 2 hours of time...Again and again searching in google. U consolidated everything

shreyasb.s
Автор

One of the best, simple, neat and clean demo ..Superb!

skdogra
Автор

Thank You. video 1 to 18 + AWS EC2 completed. Now I am feeling that I have good knowledge of jenkins.

infinitynewsinformation
Автор

This Series helped a lot.
Watched all and learned
Thank you

bhavyasreethakur
Автор

Thank You, Raghav the Jenkins tutorial is very helpful for me, keep it up.

pateluday
Автор

awesome job
I watched whole series and learned alot
wonderful job >> as usual man >> thanks

noneapplicable
Автор

a very easier way to learn jenkin and play with jobs and plugins.
great work raghav sir
keep it up.

chandrakantpatil
Автор

Raghav, Thanks for The Series ! It helpful watched all episodes.

krishnachavhan
Автор

Complete series is marvellous. Thank you for your efforts. Can we have a different playlist like Jenkins-Miscellaneous in future which will explain some advanced topics ?

vikasdubeyyy
Автор

simple presentation.Thanks a ton sir...im searching for this tutorial for a while.
glad that i found your channel...
Thankyou...!!

RV-iwsr
Автор

Thanks Raghav---easiest instructions I've found to follow

williamsteele
Автор

Done with another of your insightful playlist. Had an awesome and useful experience learning about Jenkins platform a lot better now. Thanks to you Bro. Keep it up.

A.B.
Автор

I have gone through all the jenkins related videos that you have posted and they are quite helpful. If possible, can you list out FAQs and Interview Q and A ? That would be a great help to lot of us.

devopsaspire
Автор

Nice guidance to learn Jenkins in one day. Thanks a lot.

ganapathilana
Автор

Hai Raghav,
I like your videos.. The way of teaching is very excellent everyone can easily understand..
If You make some videos on AWS related to devops it will be very helpful..
Thank you

Revathi
Автор

Hi Raghav its a very useful serie, s and Helped a lot to learn on jenkins.Thank you Bro.

shivarajupp
Автор

Raghav, Thanks for the playlist...very very helpful...Thanks for your efforts for us...

kalyanjangala